问题描述
我正在尝试使用webapp2和python中的数据存储区创建网络服务。但是每当我尝试运行 dev_appserver.py app.yaml时,都会引发以下错误
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
错误2017-10-11 05:44:16,207 instance.py: 280]无法连接到本地主机上的实例:17514
ERROR 2017-10-11 05:44:16,207 instance.py:280] Cannot connect to the instance on localhost:17514
但是当我使用Mac运行相同的程序时,它运行得很好。我在这里缺少什么吗,请找到我已安装在gcloud中的组件的画面。
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.
有人可以告诉我我在做什么错吗?我是Google Cloud Platform的新手,如果我做错了事,请指出正确的方向。任何帮助,将不胜感激。谢谢。
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.
推荐答案
问题已解决。就像@DanCornilescu所说,这是环境问题。我停用了虚拟环境。而且它工作正常,没有问题。
The problem is fixed. Like @DanCornilescu said it's an environment issue. I deactivated the virtual environment. And It works fine with no issue.
这篇关于每当我尝试运行Google App Engine开发服务器时,它都会引发以下错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!