AttributeError: module 'lib' has no attribute 'X509_up_ref'
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.
ubuntu python pip
add a comment |
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.
ubuntu python pip
Please instead of putting image write the output codes in a coding formatting
– ceccoemi
Apr 18 '18 at 20:58
Most probably you have an incompatible version combination ofpyopenssl
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.
– hoefling
May 27 '18 at 11:39
add a comment |
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.
ubuntu python pip
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.
ubuntu python pip
ubuntu python pip
edited Apr 19 '18 at 0:16
Gabriel Lafayette
asked Apr 18 '18 at 20:38
Gabriel LafayetteGabriel Lafayette
213
213
Please instead of putting image write the output codes in a coding formatting
– ceccoemi
Apr 18 '18 at 20:58
Most probably you have an incompatible version combination ofpyopenssl
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.
– hoefling
May 27 '18 at 11:39
add a comment |
Please instead of putting image write the output codes in a coding formatting
– ceccoemi
Apr 18 '18 at 20:58
Most probably you have an incompatible version combination ofpyopenssl
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.
– hoefling
May 27 '18 at 11:39
Please instead of putting image write the output codes in a coding formatting
– ceccoemi
Apr 18 '18 at 20:58
Please instead of putting image write the output codes in a coding formatting
– ceccoemi
Apr 18 '18 at 20:58
Most probably you have an incompatible version combination of
pyopenssl
and cryptography
installed. If you run pip show cryptography | grep "Version:"
and pip show pyopenssl | grep "Version:"
, what do you get? Updating both packages to latest versions should solve the issue.– hoefling
May 27 '18 at 11:39
Most probably you have an incompatible version combination of
pyopenssl
and cryptography
installed. If you run pip show cryptography | grep "Version:"
and pip show pyopenssl | grep "Version:"
, what do you get? Updating both packages to latest versions should solve the issue.– hoefling
May 27 '18 at 11:39
add a comment |
1 Answer
1
active
oldest
votes
This is what resolved it for me:
as root on Debian:
apt remove python3-openssl -y
apt autoremove
Made sure that /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py
was removed.
apt install python3-openssl -y
Then, pip3
was able to install again, and I lived happily ever after.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438595%2fattributeerror-module-lib-has-no-attribute-x509-up-ref%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is what resolved it for me:
as root on Debian:
apt remove python3-openssl -y
apt autoremove
Made sure that /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py
was removed.
apt install python3-openssl -y
Then, pip3
was able to install again, and I lived happily ever after.
New contributor
add a comment |
This is what resolved it for me:
as root on Debian:
apt remove python3-openssl -y
apt autoremove
Made sure that /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py
was removed.
apt install python3-openssl -y
Then, pip3
was able to install again, and I lived happily ever after.
New contributor
add a comment |
This is what resolved it for me:
as root on Debian:
apt remove python3-openssl -y
apt autoremove
Made sure that /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py
was removed.
apt install python3-openssl -y
Then, pip3
was able to install again, and I lived happily ever after.
New contributor
This is what resolved it for me:
as root on Debian:
apt remove python3-openssl -y
apt autoremove
Made sure that /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py
was removed.
apt install python3-openssl -y
Then, pip3
was able to install again, and I lived happily ever after.
New contributor
New contributor
answered 7 mins ago
Debug255Debug255
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438595%2fattributeerror-module-lib-has-no-attribute-x509-up-ref%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please instead of putting image write the output codes in a coding formatting
– ceccoemi
Apr 18 '18 at 20:58
Most probably you have an incompatible version combination of
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.– hoefling
May 27 '18 at 11:39