No matter what module I try to install via pip3 install I always get the same error :
AttributeError: module 'lib' has no attribute 'X509_up_ref'
Have no idea how to solve this one. Anyone had this issue before?
gabriel@E1-522:~$ pip3 install ipaddress
Collecting ipaddress
From cffi callback <function _verify_callback at 0x7f0d2e0419d8>:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/OpenSSL/SSL.py", line 313,
in wrapper
_lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'
Could not find a version that satisfies the requirement ipaddress
(from versions: )
No matching distribution found for ipaddress
The same error while trying to install a different module:
gabriel@E1-522:~$ pip3 install cryptography
Collecting cryptography
From cffi callback <function _verify_callback at 0x7fd515d659d8>:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/OpenSSL/SSL.py", line 313, in wrapper
_lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'
Could not find a version that satisfies the requirement cryptography
(from versions: )
No matching distribution found for cryptography
I run Ubuntu 17.10 . I have both python 2.7 and 3.6
Thank you.
pyopenssl
andcryptography
installed. If you runpip show cryptography | grep "Version:"
andpip show pyopenssl | grep "Version:"
, what do you get? Updating both packages to latest versions should solve the issue.