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

Jason Friedman jason at powerpull.net
Thu Dec 27 16:47:00 CET 2012


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



More information about the Python-list mailing list