pip crashes at startup importing from OpenSSL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyopenssl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
For python-openssl Version: 0.15.1-2build1 on Ubuntu 16.04
'pip' (and other commands) importing from OpenSSL crash with the following traceback
$ pip
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
File "/usr/lib/
from pip.exceptions import InstallationError, CommandError, PipError
File "/usr/lib/
from pip._vendor.six import iteritems
File "/usr/lib/
vendored(
File "/usr/lib/
__import_
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/share/
File "/usr/lib/
from OpenSSL import rand, crypto, SSL
File "/usr/lib/
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
By googling the last line, it seems many people are experiencing this problem (an example https:/
tags: | added: xenial |
Just started hitting this as well. Simply importing the OpenSSL library raises the AttributeError:
adam@amebix:~$ python -c 'import OpenSSL' python2. 7/dist- packages/ OpenSSL/ __init_ _.py", line 8, in <module> python2. 7/dist- packages/ OpenSSL/ SSL.py" , line 118, in <module>
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
from OpenSSL import rand, crypto, SSL
File "/usr/lib/
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
adam@amebix:~$