Questions tagged [python-3.9]
A version of the Python programming language, first released on October 5, 2020. This tag is for issues that are specific to Python 3.9. For general questions use the more generic [python] and [python-3.x] tags.
python-3.9
1,134
questions
1
vote
1
answer
58
views
Docker script installing python 3.9 started failing recently
We have a solution deployed on AWS where an EC2 instance uses docker files to build images for different components. One of those components has a docker script we haven't changed in over a year that, ...
-1
votes
1
answer
11
views
Which version of Quart to use?
I have a very simple Flask website running on my Synology NAS. I discovered that I probably need asyncio capabilities.
I found out that these do not work with Flask. Via Google I learned that Quart is ...
1
vote
1
answer
16
views
models.ManyToManyField Necessity
I can't understand, what benefits we get when adding models.ManyToManyField if using intermediary model? Is it necessary?
I want to use base (not custom) user model in my project. Should I redefine ...
0
votes
1
answer
33
views
Stop a Program from Running using a Character Without pressing Enter key in Python 3.x
I have tried some solutions that I could get from the other threads here but still no luck. My issue is that the program can recognize the character I've entered but does not execute to stop the ...
0
votes
0
answers
34
views
Cannot install Ansible Automation Platform offline bundle on RHEL8 servers due to "missing" Python 3.9
I am trying to install Ansible Automation Platform setup bundle (ansible-automation-platform-setup-bundle-2.4-7-x86_64.tar.gz), downloaded directly from Red Hat's Ansible portal.
When I try to install ...
-2
votes
0
answers
31
views
"Import \"tensorflow.keras\" could not be resolved [duplicate]
I'm using python 3.9.0 and "Import "tensorflow.keras" could not be resolved error warning is occurring.
when runned 'pip list' it shows
keras 3.4.1 and tensorflow 2.16.2
whats the ...
0
votes
1
answer
37
views
pip install pytrec_eval fails with ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
I am trying to install pytrec_eval package using this command python -m pip install pytrec_eval but it fails with the following error: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] ...
2
votes
1
answer
48
views
Typing with TypeVar converts a type to an object
I am trying to implement a generator that will return a pair of a sequence element and a boolean value indicating whether the element is the last one.
from collections.abc import Generator, Iterable
...
0
votes
0
answers
67
views
ModuleNotFoundError: No module named '_ssl' running Python3.9
I'm trying to configure a virtual environment with Python3.9 (with other distributions works without problem) in Ubuntu 20.04 LTS but I got the error:
ModuleNotFoundError: No module named '_ssl'
I ...
0
votes
1
answer
36
views
How do I create a custom button class in tkinter?
I want to create a custom class for the tkinter button class. However when I run my code the button doesn't appear on my window. The programme doesn't throw any errors either. Running on Mac on python ...
0
votes
0
answers
12
views
Has anyone encountered a Segmentation fault when executing the effect method of econml on CentOS 6.3 using Python 3.9?
gdb bt information:
in dict_traverse ()
in deduce_unreachable ()
in collect ()
in collect_with_callback ()
in PyGC_Collect ()
in Py_FinalizeEx ()
in Py_RunMain ()
in Py_BytesMain ()
in ...
0
votes
0
answers
42
views
Create a .zip file which has python scripts and required packages and works inside a python virtual environment inside an air-gapped system
I want to create a python project .zip file to deploy inside a air-gapped system (No internet connection to download dependency packages/modules). Python version inside air-gapped system is python 3.9
...
0
votes
0
answers
64
views
Error when installing tensorflow_federated package in VS code in Windows 10
I want to install tensorflow_federated package in VS Code in Windows 10 by using 'pip install tensorflow_federated' command. My python version is 3.9.0. But I get this error:
WARNING: Ignoring invalid ...
0
votes
1
answer
79
views
TypeError: 'class Meta' got invalid attribute(s): manager_inheritance_from_future in Django4.2
I got above error while running the makemiragtions command. So I delete/renamed the existing migration folder and rerun the makemirations command it's is migrated but when I run the migrate I got same ...
1
vote
0
answers
163
views
ssl verification throws error with python 3.12 whereas in python 3.9 it succeeded
With python 3.12 I got the error:
SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)')
But with python 3.9 its working ...