Broken pipenv after update: AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
See original GitHub issueAfter:
$ sudo pip install -U pipenv
...
ackages (from pew>=0.1.26->pipenv)
Installing collected packages: pew, pipenv
Found existing installation: pew 0.1.26
Uninstalling pew-0.1.26:
Successfully uninstalled pew-0.1.26
Found existing installation: pipenv 8.2.5
Uninstalling pipenv-8.2.5:
Successfully uninstalled pipenv-8.2.5
Successfully installed pew-0.1.27 pipenv-8.2.6
I couldn’t use pipenv:
$ pipenv shell
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 7, in <module>
from pipenv import cli
File "/usr/local/lib/python2.7/dist-packages/pipenv/__init__.py", line 17, in <module>
from .cli import cli
File "/usr/local/lib/python2.7/dist-packages/pipenv/cli.py", line 21, in <module>
import requests
File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 84, in <module>
from urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
$ pipenv --jumbotron
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 7, in <module>
from pipenv import cli
File "/usr/local/lib/python2.7/dist-packages/pipenv/__init__.py", line 17, in <module>
from .cli import cli
File "/usr/local/lib/python2.7/dist-packages/pipenv/cli.py", line 21, in <module>
import requests
File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py", line 84, in <module>
from urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
'module' object has no attribute 'SSL_ST_INIT' - Stack Overflow
I couldn't uninstall or upgrade. AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. Following worked for me. # rm -rf /usr ...
Read more >Advanced Usage of Pipenv - Python Packaging Authority
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv lock . There are some known issues with using...
Read more >Python tox doesn't build anymore - Feedback & Bug Reports
I have a python test suite running with tox and since this morning ... AttributeError: module ... has no attribute 'CPython3macOsFramework'.
Read more >AttributeError: 'module' object has no attribute 'SSL_ST_INIT ...
Some python scripts and other programs are throwing this error from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
Read more >Debian Bug report logs - #941447 pipenv: AttributeError when ...
Subject: pipenv: AttributeError when running 'pipenv check' ... line 52, in check AttributeError: module 'pip' has no attribute ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I uninstalled requests and pipenv and then I reinstalled both, but the problem still happening. I did some research and I found that the problem was pyOpenSSL. I remove that lib and reinstalled: sudo pip install -U pyOpenSSL Now pipenv works!
We are getting exactly same issue with
pipenv-11.6.0
Uninstall of pyOpenSSL seems to solve the issue but I am not suer if this is a right way to solve it.