ImportError: /usr/local/lib/python3.2/dist-packages/OpenSSL/SSL.cpython-32mu.so:

Discussion in 'Python' started by Jason Friedman, Dec 27, 2012.

  1. Hello,
    I downloaded:
    https://launchpad.net/pyopenssl/main/0.11/ download/pyOpenSSL-0.11.tar.gz

    Then:
    $ python3 setup.py build
    $ sudo python3 setup.py install

    Then:
    $ python3 -c "from OpenSSL import SSL"
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "OpenSSL/__init__.py", line 40, in <module>
    from OpenSSL import crypto
    ImportError: cannot import name crypto

    Then I downloaded:
    http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.tar.gz

    Then
    $ python3 setup.py build
    $ sudo python3 setup.py install

    Now:
    $ python3 -c "from OpenSSL import SSL"
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/local/lib/python3.2/dist-packages/OpenSSL/__init__.py",
    line 45, in <module>
    from OpenSSL import rand, SSL
    ImportError: /usr/local/lib/python3.2/dist-packages/OpenSSL/SSL.cpython-32mu.so:
    undefined symbol: SSLv2_method

    (Which does not turn up any hits on Google, even with the local path removed.)

    $ which python3
    /usr/bin/python3

    $ whereis python3
    python3: /usr/bin/python3 /usr/bin/python3.2mu
    /usr/bin/python3.2mu-config /usr/bin/python3.2-config
    /usr/bin/python3.2 /etc/python3 /etc/python3.2 /usr/lib/python3
    /usr/lib/python3.2 /usr/bin/X11/python3 /usr/bin/X11/python3.2mu
    /usr/bin/X11/python3.2mu-config /usr/bin/X11/python3.2-config
    /usr/bin/X11/python3.2 /usr/local/lib/python3.2
    /usr/include/python3.2mu /usr/include/python3.2 /usr/share/python3
    /opt/python/bin/python3.2m /opt/python/bin/python3
    /opt/python/bin/python3.2m-config /opt/python/bin/python3.2-config
    /opt/python/bin/python3.2 /usr/share/man/man1/python3.1.gz
     
    Jason Friedman, Dec 27, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page