Unable to start App Engine application after updating it via Google Cloud SDK

让人想犯罪 __ 提交于 2019-11-29 03:32:43

This is currently an issue with the dev_appserver bundled in the Cloud SDK. A fix will be out soon. In the meanwhile, your options are: 1) Use gcloud preview app run to run your app when using the Cloud SDK 2) Install the standalone AppEngine SDK (which you already mentioned in your question)

José Rosas Sáenz

This has happened to me today to reinstall the app engine sdk. I could not run my code in the launcher.

I remember reading that is not used pip app engine, but now I have solved the problem.

In short what I did was:

  1. Install pip the footsteps of https://pip.pypa.io/en/latest/installing.html (this also correctly install the setuptools)

  2. Install docker-py by pip: pip install docker-py and ready, I can now run my code in the launcher

P.S. Previously I tried to install the docker-py package, downloaded from https://github.com/docker/docker-py, but lacked setuptools, downloaded and installed the package did not work. So use this with pip.

If installing docker-py doesn't work and the stacktrace shows that the error line is:

from docker import docker

Change this line to:

import docker

Source

Jumping on the answer from @Tzach and adding some info.

The file to modify is containers.py

for me it is located here : C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\docker

If you can't modify it because the file is open in an application, it is in fact that the folder is protected. Just copy/paste the file on your desktop and modify it from there. then copy it back in the original folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!