Skip to content
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

No module named SimpleHTTPServer #18

Closed
haardikk21 opened this issue Jun 18, 2018 · 1 comment
Closed

No module named SimpleHTTPServer #18

haardikk21 opened this issue Jun 18, 2018 · 1 comment

Comments

@haardikk21
Copy link

haardikk21 commented Jun 18, 2018

   2018-06-18T16:02:09.03-0400 [APP/PROC/WEB/0] ERR   File "run.py", line 6, in <module>
   2018-06-18T16:02:09.04-0400 [APP/PROC/WEB/0] ERR     import SimpleHTTPServer
   2018-06-18T16:02:09.04-0400 [APP/PROC/WEB/0] ERR ModuleNotFoundError: No module named 'SimpleHTTPServer'

A few searches tell me SimpleHTTPServer is now included in http.server

Currently locally attempting to solve this issue. Will make a pull request if it works.

@lmsurpre
Copy link
Member

A separate issue helped me realize that the script that was updated in the pull request for this issue is actually the one that runs on the cloud. The version of python you use to run setup-app.py shouldn't really matter. I will revert the change to the README and add a runtime.txt to ask for python 3.6.x per the instructions at https://docs.cloudfoundry.org/buildpacks/python/index.html#runtime

lmsurpre added a commit that referenced this issue Jul 20, 2018
it turns out that any python version should work for invoking setup-app.py

i also added a runtime.txt to ask the CF buildpack to use python3 (just for good measure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants