Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [python-3.x]

DO NOT USE UNLESS YOUR QUESTION IS FOR PYTHON 3 ONLY. Always use alongside the standard [python] tag.

python-3.x
107,883 questions with no upvoted or accepted answers
26 votes
2 answers
2k views

Flask unable to read Authorization header on ElasticBeanstalk

I have deployed a Flask app to AWS ElasticBeanstalk. The app is unable to read the 'Authorization' header in requests. Error log reports: KeyError: 'HTTP_AUTHORIZATION' Error traced to: @application....
burntsugar's user avatar
  • 57.8k
18 votes
6 answers
16k views

Install from pipfile using pipenv install gives error

I have a project where I'm trying to install from the pipfile using pipenv install. I get som error when installing. Before i describe the error, this is what I did: Reinstall pipenv Reinstall Python ...
BluePrint's user avatar
  • 2,088
17 votes
0 answers
2k views

Trouble finding memory leak (tracemalloc/objgraph/gc not helping)

I have a network process that communicates over TCP collecting data, deserialising it and finally storing parts in a LevelDB key/value store (via Plyvel). Slowly over time it will consume all ...
ixje's user avatar
  • 390
16 votes
2 answers
8k views

'ImportError: No module named ...' when trying to import pyx file to Jupyter

I have this file em.pyx in the same folder as the Jupyter notebook where I try to import it but it is giving me the error ImportError: No module named em I've tried adding import sys sys.path....
AJHC's user avatar
  • 295
15 votes
1 answer
11k views

Ignore pkg_resources.ContextualVersionConflict or ResolutionImpossible

I have built a python module which installs kwikapi==0.4.5 and requests==2.22.0. But kwikapi has requests==2.18.4. Now when I install and run my package, I am getting error pkg_resources....
Ram Idavalapati's user avatar
15 votes
6 answers
6k views

Unable to get double click event in OpenCV for python

OpenCV with python(MAC OS X EL Capitan) I'm creating a demo project to track mouse events in openCV. using standard mouseCallback from openCV. following is my code for the same. drawWithMouse.py #!/...
Rajendrasinh Parmar's user avatar
15 votes
2 answers
18k views

MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x0000018F09F334A8>'

I am getting the below error when I am downloading files using multiprocessing. I am downloading Wikipedia page views and they have it by hour so it might include a lot of downloading. Any ...
Jonathan Lam's user avatar
  • 1,310
13 votes
0 answers
997 views

Will async-generators that don't have 'await' in its finally-block be immediately closed when there is no reference to it?

According to this blog, normal generators will be immediately closed when there is no reference to it. (CPython exclusive though). My question is "Does this apply to async-generators that don't ...
Nattōsai Mitō's user avatar
12 votes
0 answers
3k views

How to configure Celery to run as systemd service with a Django application served by Gunicorn?

I followed the official Celery documentation regarding how to configure Celery to work with Django (python 3) and RabbitMQ. I already have a systemd service to start my Django Application using ...
donmelchior's user avatar
  • 1,025
12 votes
1 answer
3k views

Jinja2 template in Python 3 renders bytes with "b" prefix and quotes

I'm upgrading a Flask app from python2 to python3, Jinja2 now renders bytes with trailing b and single quotes, e.g. b'a123' while I need them rendered as a123. This happens with all urlsafe strings ...
neurino's user avatar
  • 12.2k
12 votes
1 answer
2k views

Does multiprocessing.shared_memory require locking?

I'm learning about shared memory in Python, especially the python 3.8 module multiprocessing.shared_memory. I see no mention of locking in the documentation. (Although the parent module, ...
user5304181's user avatar
11 votes
0 answers
7k views

Python 3.8 concurrent.futures "OSError: handle is closed"

I have Python 3.8 and cannot upgrade (I have dependencies that only work with Python 3.8), so this SO post does not answer my question. How do I prevent the OSError: handle is closed error? This ...
adam.hendry's user avatar
  • 5,267
11 votes
0 answers
15k views

FastAPI workers timeout

Some background: I am not sure if the following details are required to reply to my question but providing them just for reference. I am developing a FastAPI POST endpoint which does the following: ...
gsach's user avatar
  • 5,745
11 votes
1 answer
2k views

Can't pickle <class 'MemoryError'>: it's not the same object as builtins.MemoryError

I am using multiproccessing pool map in Python 3.7 and I am getting error like below with Docker container. multiprocessing.pool.MaybeEncoding Error: Error sending result: '<multiprocessing.pool....
Sumi kevat's user avatar
11 votes
0 answers
4k views

Plotly displaying sad 'fail' face instead of output

I'm using plotly==4.5.1 in a jupyter==1.0.0 notebook, python==3.7.4. The same piece of code which previous showed this: Is now showing this, without having had any modifications: Does anyone have ...
Ian's user avatar
  • 3,830

15 30 50 per page
1
2 3 4 5
7193