question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named ndg.httpsclient.ssl_peer_verification

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
rafaelafonsocommented, Apr 4, 2016

@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 😉

0reactions
greenvilleassociatescommented, Dec 19, 2021

Actually the answer is… https://pypi.org/project/ndg-httpsclient/ pip install ndg-httpsclient

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found