279,295 questions with no answers
0
votes
0
answers
7
views
Loading pytest fixtures from separate Poetry package
I am trying to move some test configuration into a common Poetry package to avoid repetition of the same fixtures.
In a project there is a package named user-service with tests folder inside. Inside ...
Advice
0
votes
0
replies
15
views
Python code in train.py how to update it into confusion matrix
I have a project on iris classifier, I have done most of the steps but I am stuck. How do I:
1 Update the Python code in train.py so that it can:
Save the confusion matrix as a PNG image in an outputs/...
1
vote
0
answers
37
views
Error "InvalidVersion: Invalid version: 'unknown'" when triying to load netcdf files using xarray
I'm trying to load some .nc files this way:
ds = xr.open_dataset('path/to/file.nc')
At first I get no error message, but when I try to operate or simply visualize the data I get this really long ...
1
vote
0
answers
2k
views
Problem scraping Bet365 Odds w/ Python and Selenium
I've been writing a program to scrape odds from betting sites using Python and Selenium. When I request the Bot to get the sites, most of the sites get loaded, but not Bet365. The browser keeps ...
1
vote
0
answers
39
views
Track the historic of a time series for a market sentiment trading strategy. Error: argument of type 'numpy.bool_' is not iterable
I'm developing a market sentiment trading strategy for my Investment class. Basically, the strategy currently consists of selling the market index in Zone 1 and 3 and buying (holding) the market index ...
0
votes
0
answers
780
views
Can't figure out DeclarativeMeta error with Alembic and SQLAlchemy in Django project
I could use some help figuring out how to debug this:
I suspect that there is something wrong with my models.py file but the error messages are pretty vague.
I use Alembic and SQLAlchemy instead of ...
5
votes
0
answers
327
views
How can I both fetch all Kubernetes objects as a snapshot and stream changes?
I'm trying to figure out the "right" way to monitor for changes on a Kubernetes API server when I also need to maintain a snapshot of existing objects.
I need my code to know when it has ...
-9
votes
0
answers
115
views
EasyOCR doesn't recognize any text in image
I'm trying to extract text from a video. I created cropped frames from the video using ffmpeg and saved them as PNGs. Now, I'm using those PNGs to extract the text using EasyOCR. At first, I tried ...
0
votes
0
answers
77
views
OSError: [WinError 1114] when importing a library in python
I am using Python 3.11.7 on Jupyter Notebook. I am trying to install the library transformers in Jupyter with pip install transformers It has a dependency on package torch and I have torch version 2....
Tooling
1
vote
0
replies
67
views
Airflow use cases for different repos
I am newbie in Airflow and I use currently task scheduler on remote desktop to automate our tasks but it is based on my credentials and I cannot share with other team members, so I clone all projects ...
0
votes
0
answers
52
views
Opentelemetry in AWS Lambda leads to serialization errors
We have a setup where we use Lambda serverless flask application behind an API Gateway. We started adding Opentelemetry as an additional layer in the lambda function (arn:aws:lambda:eu-central-1:...
0
votes
0
answers
85
views
OpenCV not detecting unfilled circle outlines as bubbles in OMR sheet - what detection method works for both empty and filled bubbles?
I am building an OMR (Optical Mark Recognition) system in Python using OpenCV. My answer sheet has 180 bubbles arranged in 4 columns of 45 questions, with 4 options (A, B, C, D) per question. Each ...
-3
votes
0
answers
121
views
Parsing Problems in HTTP Web Proxy Server
In a Python exercise, I need to develop a small web proxy server that is able to cache web pages. This proxy server only needs to understand simple GET-requests but is able to handle all kinds of ...
0
votes
0
answers
102
views
Crash with very large calculation using mpmath
I have recently written a Python program to calculate the first and last digits of extremely large numbers, and have found that the code for calculating the first digits works well even for inputs ...
Advice
0
votes
0
replies
84
views
Team radio clips unavailable via the end-point of F1
I've been working on a personal project and wanted access to the team radio clips of all the drivers for the project.
I was able to find and access them via the https://livetiming.formula1.com/static/ ...