AttributeError: module 'lib' has no attribute 'X509_up_ref'












3















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.










share|improve this question

























  • 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
















3















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.










share|improve this question

























  • 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














3












3








3


2






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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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



















  • 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

















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










1 Answer
1






active

oldest

votes


















0














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.





share








New contributor




Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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.





    share








    New contributor




    Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      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.





      share








      New contributor




      Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        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.





        share








        New contributor




        Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        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.






        share








        New contributor




        Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share


        share






        New contributor




        Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 7 mins ago









        Debug255Debug255

        1




        1




        New contributor




        Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Debug255 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Loup dans la culture

            How to solve the problem of ntp “Unable to contact time server” from KDE?

            Connection limited (no internet access)