Google app engine development server throws the following error whenever i try to run it

南笙酒味 提交于 2019-12-14 03:58:29

问题


I'm trying to create a webservice using webapp2 and datastore in python. But whenever i try to run "dev_appserver.py app.yaml" it throws me the following error

ERROR 2017-10-11 05:44:16,207 instance.py:280] Cannot connect to the instance on localhost:17514

But when i ran the same program using mac it working perfectly fine. Is I'm missing something here, Please find the screeenshot of components i have installed in gcloud.

Could somebody tell what i'm doing wrong here? I'm newbie to google cloud platform, if i am doing something wrong kindly point me to right direction. Any help would be appreciated. Thank you.


回答1:


I see the same errors when trying to execute the dev_appserver.py from the Cloud SDK version 174.0.0.

However the dev_appserver.py from the standalone GAE SDK version 1.9.61 (theoretically the same being packed into the gcloud SDK 174.0.0) is running fine.

So one possible workaround to try would be to also install the standalone GAE SDK and run that dev_appserver.py instead.

Note: this is on linux, though, YMMV.

Related: What is the relationship between Google's App Engine SDK and Cloud SDK?




回答2:


The problem is fixed. Like @DanCornilescu said it's an environment issue. I deactivated the virtual environment. And It works fine with no issue.




回答3:


Solution for macOS. Maybe it works on Linux and Windows:

Find and remove folder:

appengine.None.<USER_NAME>

from the:

/var/folders

In may case:

/var/folders/6w/v0865mm96rj85dlwnr311bt00000gn/T/appengine.None.<USER_NAME>


来源:https://stackoverflow.com/questions/46680789/google-app-engine-development-server-throws-the-following-error-whenever-i-try-t

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