-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'lib' has no attribute 'SSL_OP_NO_TLSv1_3' #970
Comments
What version of cryptography do you have installed?
…On Sat, Nov 28, 2020 at 5:26 PM Lieven Govaerts ***@***.***> wrote:
Hi,
I rebuilt a docker image today, based on Ubuntu 18.04 and got the
following exception in a small Python script:
File "/usr/local/lib/python3.6/dist-packages/urllib3/contrib/pyopenssl.py", line 50, in <module>
import OpenSSL.SSL
File "/usr/local/lib/python3.6/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/usr/local/lib/python3.6/dist-packages/OpenSSL/SSL.py", line 149, in <module>
OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3
AttributeError: module 'lib' has no attribute 'SSL_OP_NO_TLSv1_3'
Purpose of my python script is to connect to a AWS S3 bucket over https,
so there are a couple of layers of code before OpenSSL code is run. But
it's not specific to my script, I get the same exception when running pip
list.
I suppose the problem here is that I haven't installed the required
version of a dependency, but I'll investigate that further.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#970>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBF2LVQMSYVCQYPH45DSSF2KZANCNFSM4UGCKTJQ>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
This version doesn't meet the minimum requirements of pyopenssl, but it's the one that is pre-installed in the image. Just a bit surprised that pip doesn't automatically upgrade the cryptography package... |
You should not be mixing distro packages and pip packages. |
This issue also affects systems with source builds of cryptography against openssl 1.1.0:
The problem is that |
Hi,
I rebuilt a docker image today, based on Ubuntu 18.04 and got the following exception in a small Python script:
Purpose of my python script is to connect to a AWS S3 bucket over https, so there are a couple of layers of code before OpenSSL code is run. But it's not specific to my script, I get the same exception when running
pip list
.I suppose the problem here is that I haven't installed the required version of a dependency, but I'll investigate that further.
The text was updated successfully, but these errors were encountered: