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

J

Jason Friedman

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top