python-ngrok
python-ngrok copied to clipboard
ModuleNotFoundError: No module named 'client'
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.
#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?
Oops, I see the code is 4 years old and there is no urllib2 package available on PyPi any more.
Did you find a solution to this @MisterY?