Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dev_appserver.py error when trying to deploy to Google AppEngine

I'm trying to deploy an example dart server using Google AppEngine. However when I run this python script (with the latest python version installed 3.5)

dev_appserver.py

I've also tried

dev_appserver.py --custom_entrypoint "dart bin/server.dart {port}" app.yaml

I get this error:

Traceback (most recent call last):
  File "C:\Users\jkrie\AppData\Local\Google\Cloud SDK\google-cloud- sdk\bin\dev_appserver.py", line 11, in <module>
    import bootstrapping.bootstrapping as bootstrapping
  File "C:\Users\jkrie\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\bootstrapping\bootstrapping.py", line 9, in <module>
    import setup

ImportError: No module named 'setup'

I've also installed setuptools. I have to assume there is something wrong with my Google Cloud SDK install, but I really don't know what. Is python 3.5 too new and I need to try an older version?

like image 902
BeatingToADifferentRobot Avatar asked Jun 15 '16 16:06

BeatingToADifferentRobot


1 Answers

GAE standard environment only supports Python 2.7 at this time, see Google App Engine Documentation.

Python 3.4 is supported only in the flexible environment, which has a different development flow.

Related: Google cloud dev_appserver.py unable to host laravel project locally

like image 152
Dan Cornilescu Avatar answered Oct 22 '22 15:10

Dan Cornilescu