Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
56 views

For some reason, this code doesn't work on Ubuntu 20, Python 3.8.10, unless the .gather line is commented out. It works on Ubuntu 24, Python 3.12.3 and Windows 11, Python 3.13.9. It doesn't work on ...
WorkerZ's user avatar
  • 21
0 votes
0 answers
205 views

I'm trying to override the default exception handler in a FastAPI application so I can log any exceptions that happen. The problem that I run into is that my handler seems to run as it logs what I ...
bl4met's user avatar
  • 5
0 votes
0 answers
68 views

I'm trying to install mysqldb on python3.8 (Windows 11 24H2). I initially had issues with VSC++14 but I managed to solve them. pip install -U flask_mysqldb error: subprocess-exited-with-error ...
Christian Mahamba's user avatar
0 votes
2 answers
76 views

We're working on a message-based communication mechanism. We have several classes that manage incoming messages and send outgoing messages at a high level (Commands, Queries, and Events). Underneath, ...
Trauma's user avatar
  • 173
-2 votes
1 answer
215 views

My code so far: def _ssl_context(self, ca: str | None) -> ssl.SSLContext: # NOTE: ssl.create_default_context() doesn't allow setting the context.protocol in a way # that's the ...
Dima Tisnek's user avatar
  • 11.9k
-2 votes
1 answer
327 views

I got this error: from fake_useragent import UserAgent File "D:\Kerja\HIT\Python Projects\Ongoing Projects\Andrew Mancilla\mancilla-env\lib\site-packages\fake_useragent\__init__.py", ...
Aminah Nuraini's user avatar
0 votes
1 answer
73 views

The program terminates automatically without throwin any error or output The port and connector working fine and details are given below C:\Users\jsr>pip list Package Version --------...
sud0074's user avatar
  • 117
-1 votes
1 answer
48 views

I have a Python3 project arranged as follows: C:\automation\framework\constants.py C:\automation\tests\unit-tests\test_myunittest.py In my unit test, I'm trying to call methods in framework folder, ...
bearaman's user avatar
  • 1,091
-2 votes
1 answer
73 views

Original question Current project setup is project/ ├─ ams/ │ ├─ __init__.py │ ├─ common/ │ │ ├─ dataclasses.py │ │ ├─ __init__.py ├─ entry_point/ │ ├─ bar_api/ │ │ ├─ swagger/ │ │ │ ├─ ...
bqback's user avatar
  • 317
3 votes
1 answer
11k views

I've been trying to test out a colony counter code I found on GitHub that could be of use. However, the windows that generates when i run the code aren't the same as the ones that are demonstrated in ...
Luis Cruz's user avatar
0 votes
2 answers
135 views

I have following class Database with get_data method. It uses 'closing' of 'contextlib' module to close the connection. class Database: def __init__(self) -> None: self.db_details = {&...
Faraz's user avatar
  • 19
0 votes
0 answers
78 views

PyCaret is having lots of issue. python 3.8 support PyCaret versions. I am using PyCaret 2.3.6. It is compatible with numpy version lesser than 1.20 . I am using PyCaret 2.3.6. and Numpy 1.19.5 in ...
DEBESH CHOUDHURY's user avatar
2 votes
1 answer
605 views

i have this custom logger that extend the classic levles to our organization needs import logging from config import cfg from json import dumps from pydash import map_ import pathlib import re class ...
Maksim Leali's user avatar
1 vote
1 answer
239 views

I was supposed to create a while true loop. The program should be counting to 100, printing each number. However, instead of counting the multiples of 3, 5 and 3 and 5 the program has to print a ...
Lolo Popcorn's user avatar
0 votes
1 answer
1k views

I'm supporting a lambda project (python 3.8) and when I run the command "sam local invoke LambdaFunction --event events/get_users.json", it gives the following error `Invoking main....
Link64's user avatar
  • 1
0 votes
1 answer
171 views

Suppose I have an Enum class in Python: class MyEnum(Enum): A = "a" B = "b" I have a function that is returning for each of the possible (two in this case) enum values a ...
roschach's user avatar
  • 9,616
1 vote
1 answer
358 views

I am trying yo run SimpleNet network and when I enter the command bash run.sh on the terminal I see the following output: Matplotlib created a temporary cache directory at /tmp/matplotlib-ovjj_rt5 ...
mericgeren's user avatar
2 votes
1 answer
161 views

I have a larger Python 3 program that processes OCR outputs and some bubble detection and I have it mostly worked out. I have one function that I got off Stack Overflow that works but has a weird side ...
kmsgli's user avatar
  • 33
0 votes
2 answers
975 views

The sequence of events to replicate is as such: read in a s3 parquet partition using pandas.read_parquet (which is pyarrow.dataset under the hood). add another file into that partition. read the same ...
michaelgbj's user avatar
1 vote
1 answer
358 views

I am working on an AWS Lambda function for an end-to-end data engineering project involving YouTube data analysis. The function is designed to read JSON data from an S3 bucket, process it, and write ...
abhishek gajul's user avatar
3 votes
0 answers
378 views

I changed a OnetoOnefield in a PostImage model to a ForeignKey and getting the said error. Here is what is changed : class PostImage(models.Model): # post = models.OneToOneField(Post, on_delete=models....
Earthling's user avatar
  • 489
0 votes
1 answer
52 views

I am generating dataframes from hdf5 datasets in a h5td file. These datasets are typically very large and I need to merge them. The general format is as follows: group1/dataset1 group1/dataset1_Time ...
KerbFusion's user avatar
0 votes
0 answers
114 views

This question is related to this one: perform-large-numbers-of-http-requests-asyncronously-n-at-a-time The problem is that I want to make a large amount of requests, about 500.000, each request get a ...
Ulrabab's user avatar
0 votes
1 answer
570 views

I have some code that breaks in python3.11 for some reason, namely paddleocr. I want to integrate it in a program that is otherwise written in python3.11. Although there is the obvious method of ...
azman's user avatar
  • 3
1 vote
0 answers
39 views

I have two 'conf' files with content in '[section] name=value' format. The first conf file has a value that contains the name of a second conf file. I can use ConfigParser.read() to read the first ...
Biggsy's user avatar
  • 41

1
2 3 4 5
46