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

后端 未结 4 2073
离开以前
离开以前 2020-12-16 14:18

Recently, I have updated Google App Engine from 1.9.17 to 1.9.18 via Google Cloud SDK by using command \'gcloud components update\' in Windows 7 64 bit. After that I wasn\'t

相关标签:
4条回答
  • 2020-12-16 14:36

    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)

    0 讨论(0)
  • 2020-12-16 14:36

    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.

    0 讨论(0)
  • 2020-12-16 14:43

    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

    0 讨论(0)
  • 2020-12-16 14:58

    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.

    0 讨论(0)
提交回复
热议问题