Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named 'setup'

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?

like image 943
Tim Romanski Avatar asked Nov 18 '16 14:11

Tim Romanski


1 Answers

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.

like image 104
Chris Bobbe Avatar answered Sep 20 '22 15:09

Chris Bobbe