I'm using the Google App Engine, and I want to deploy my app to localhost using dev_appserver.py, however when I do that it specifies that some file called "bootstrapping.py" is trying to import 'setup', and that there is no module with that name. I have python3.5 installed. I also have the google-cloud-sdk\bin saved to Path in my environment variables. Did I not install something I should have?
2
- Is your app a standard or flexible environment one? FWIW the standard environment only supports python 2.7Dan Cornilescu– Dan Cornilescu2016-11-18 15:19:55 +00:00Commented Nov 18, 2016 at 15:19
- Possible duplicate of Dev_appserver.py error when trying to deploy to Google AppEngineDan Cornilescu– Dan Cornilescu2017-01-09 15:26:28 +00:00Commented Jan 9, 2017 at 15:26
Add a comment |
1 Answer
I had the same problem but was able to fix it by switching to Python 2.7.
I'm using Conda, which has a good guide for creating a Python 2.7 environment while still being able to switch easily back to Python 3.5: http://conda.pydata.org/docs/py2or3.html
If you're not using Conda I'm sure there's still a way to switch back to Python 2.7, but I'm not sure if that means you have to get rid of Python 3.5. In any case, switching to 2.7 fixed my problem right away.
2 Comments
Tim Romanski
This does work. The Google App Engine also states that they only support Python 2.7, so there are obviously compatibility issues if you use 3
Bala
Yes. I also had same. after switching back to 2.7. It works fine.