-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'SimpleHTTPServer' #16
Comments
@alanjds – I'm afraid the project doesn't support running under Python 3 currently. If you have the time to convert it to doing so I would really appreciate it, unfortunately I just don't have the time currently (particularly as this project has languished for years :( ). Sorry I can't be of more help :( |
Thanks for the response. I was kind of expecting it. Filled the issue just to "create backlog". Sometimes strangers do surprise you taking your issues and submitting PRs :) The project is not needed for what I do right not, so I have no excuse to put effort on it today. Tomorrow can be different. Thanks anyway. |
In Python 3: |
thank you gwenau! |
python3 -m http.serverthe output is Greetings from Universidad de Sonora |
Python 2.7 Python 3 python -m http.server 7777 add port number if you want exemple up added i add port number 7777 |
Python 2
or
Python 3
or
Note Replace 8000 with your ideal port number. Then in browser:
|
but i need to import it in file |
@SsNiPeR1 – the python docs for |
I am also facing the same problem , but i got the solution which worker for me python2 -m SimpleHTTPServer 80 |
This is because I am running on Python3.
Maybe 2to3 fix it? Or is better to convert to Python3 manually and use python-future to keep compatible with Python2 ?
The text was updated successfully, but these errors were encountered: