Category "python"

ERROR : could not find a version that satisfies the requirement tensorflow

I'm using raspberry model 3B+ , I made a venv and then tried to install tensorflow but I get these 2 errors ERROR: Could not find a version that satisfies the r

SQLAlchemy: JOIN between different databases AND using different files in a module

Stack I am using: Python 3.10.x FastAPI 0.75.x SQLAlchemy 1.4.3x Summary I am building a unifying FastAPI project for several legacy databases (stored back-end

Evaluate model result for multitask learning with keras

I designed a CNN for a multitask classification in keras, where I have one input and two different class of classes in output. I compiled the model in this way

How to limit execution time of a function call?

There is a socket related function call in my code, that function is from another module thus out of my control, the problem is that it blocks for hours occasio

Why is cuda-gdb much slower than gdb in executing the same program without breakpoints in CUDA kernels?

I am having trouble using cuda-gdb. My program starts from python and it loads a shared library containing tensorflow and cuda code. The command I used to start

Python FTP return corrupted name of file: じし->し ゙し (how can i properly decode/encode a string)

In my open source application, I use rented hosting with FTP. My application needs to read a list of files from a directory and parse it. However, some of the f

Add a new logic in pyhton

Want to add logic that calculates and outputs truckloads able to be built each day. Still want this broken out by ship-to party (so 1 ship-to party per shipment

How to optimize the downlaod big file problem in Django?

My Django project gives a download interface as follows: def download_item_vector(request): return HttpResponse(np.load('item_vector.npy')) I want to retur

Dynamically adding a row in data table Kivy/KivyMD

For example I have an empty data table (with only column data) and a button. I want to dynamically add row data when button is pressed. Is it even possible?

Improve edge detection using opencv

so I am working on a project to scan analog photos. The program should detect the edges and crop it automatically. For that I am using Python and OpenCV. My pro

Error when executing a test whose .sql file has variable (Robot Framework)

I have the following situation, could you help me? I would like to leave some dynamic data (variables) inside my .sql file and execute my test correctly in .rob

Join large set of CSV files where the header is the timestamp for the file

I have a large set of CSV files. Approx. 15 000 files. And would like to figure out how to join them together as one file for data processing. Each file is in a

Why is my word lemmatization not working as expected?

Hi stackoverflow community! Long-time reader but first-time poster. I'm currently trying my hand at NLP and after reading a few forum posts touching upon this t

Replicating ssh behavior with jupyternotebook spawn

OBS1: this question is duplicated here as suggested by Wayne in the comments, but still with no answer. I have a remote machine running ubuntu where i am config

`pyyaml` can't parse `pydantic` object if `typing` module is used

Let me start off by saying I wanted to open an issue in pydantic repo. Once I started rubber duck debugging I came up to the conclusion it's actually pyyaml tha

How to extract efficiently time-series data from a netCDF file?

I want to extract time-series of data from a unique netCDF file. I have to extract three-time series of daily temperatures across more than 500 cities from 2004

My widget cannot be placed were I want because there was already another widget in tkinter

I made a GUI with tkinter, where you write your input and it creates and displays a QRcode of your in put. It is working correctly. But after writing an input o

How to get discord message content with python websocket

from discord.ext import commands from threading import Thread client = commands.Bot(command_prefix="!") @client.event async def on_message(message): prin

QDialog with QScrollArea adjustSize on widget hide

File: search.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/chris/Documents/papinhio-player/ui/menu-3/radio-stations/se

How to use register_next_step_handler on AsyncTeleBot

Heyyy, I'm just using pyTelegramBotAPI and used the bot.register_next_step_handler to get a user input as a var and send it to the next function like: getLink =