ImportError: No module named ndg.httpsclient.ssl_peer_verification
See original GitHub issueI get the following on a Ubuntu server:
pusher = Pusher(app_id=settings.PUSHER_APP_ID, key=settings.PUSHER_KEY, secret=settings.PUSHER_SECRET)
File "/usr/local/lib/python2.7/dist-packages/pusher/pusher.py", line 42, in __init__
from pusher.requests import RequestsBackend
File "/usr/local/lib/python2.7/dist-packages/pusher/requests.py", line 12, in <module>
import urllib3.contrib.pyopenssl
File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 23, in <module>
from ndg.httpsclient.ssl_peer_verification import SUBJ_ALT_NAME_SUPPORT
ImportError: No module named ndg.httpsclient.ssl_peer_verification
I installed pusher with pip install pusher
Issue Analytics
- State:
- Created 8 years ago
- Comments:14
Top Results From Across the Web
Source Code for Module ndg.httpsclient.ssl_peer_verification
Source Code for Module ndg.httpsclient.ssl_peer_verification. 1 """ndg_httpsclient - module containing SSL peer verification class.
Read more >python - Failure to install ndg-httpsclient or maybe I'm doing ...
When I try to run this I get an error "No module named ndg.httpsclient.ssl_peer_verification", even though I only import from project 2 a ......
Read more >No module named 'pyasn1' - Let's Encrypt Community Support
Import error is: No module named 'pyasn1' ... /usr/lib/python3/dist-packages/ndg/httpsclient/ssl_peer_verification.py:25: UserWarning: ...
Read more >third_party/requests/packages/urllib3/contrib/pyopenssl.py
from ndg.httpsclient.subj_alt_name import SubjectAltName as BaseSubjectAltName. except SyntaxError as e: raise ImportError(e). import OpenSSL.SSL.
Read more >Build server fails with error can't find python module pyasn1
Import error is: No module named 'pyasn1' ... /usr/lib/python3/dist-packages/ndg/httpsclient/ssl_peer_verification.py:25: UserWarning: ...
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
@MatthiasLohr @james-hoegerl I have found the same error (trying to make it work with GAE) and I fixed it creating an empty
__init__.py
on /ndg folder. Maybe you want to give it a try 😉Actually the answer is… https://pypi.org/project/ndg-httpsclient/ pip install ndg-httpsclient