python-ngrok icon indicating copy to clipboard operation
python-ngrok copied to clipboard

ModuleNotFoundError: No module named 'client'

Open alensiljak opened this issue 6 years ago • 3 comments

Python 3.7.1

Trying the initial sample from the homepage:

import ngrok
ngrok.client.BASE_URL = "http://localhost:8000"

either in Python console or a unit test with pytest.

I can also confirm that the ngrok is correctly installed and the client.py is there. The source code can be previewed in vs code if following the links from the test file, for example.

alensiljak avatar Dec 27 '18 13:12 alensiljak

#import client
#import link
from ngrok import client
from ngrok import link

seems to work. Now breaks at missing urllib2. Has the code been tested with Python 3?

alensiljak avatar Dec 27 '18 13:12 alensiljak

Oops, I see the code is 4 years old and there is no urllib2 package available on PyPi any more.

alensiljak avatar Dec 27 '18 13:12 alensiljak

Did you find a solution to this @MisterY?

abidlabs avatar Feb 18 '19 01:02 abidlabs