为什么 dev_appserver.py 报告“没有这样的文件或目录"?在今天的 gcloud 组件更新之后 [英] Why is dev_appserver.py reporting "no such file or directory" after today's gcloud components update

查看:14
本文介绍了为什么 dev_appserver.py 报告“没有这样的文件或目录"?在今天的 gcloud 组件更新之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每天都成功地运行本地开发服务器并且没有做任何更改,只是在它停止工作之前我调用了gcloud components update".现在我得到:

I've been successfully running the local development server daily and have made no changes except that I called "gcloud components update" just before it stopped working. Now I get:

..snip...    <<PATH TO MY SDK>>/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 518, in _parse_configuration
        with open(configuration_path) as f:
    IOError: [Errno 2] No such file or directory: 'app.yaml'

当然 app.yaml 没有移动.

Of course app.yaml hasn't moved.

有什么想法吗?

推荐答案

看起来有 一个关于 Google 问题的活跃问题跟踪器(于 2018 年 10 月 2 日开放)与此相关:

It looks like there's an active issue on Google's issue tracker (opened on Oct 2, 2018) pertaining to this:

将 GAE 的 Python (2.7) 扩展更新到版本后1.9.76,我无法再使用 dev_appserver.py 运行我的代码

After updating to the Python (2.7) extensions for GAE to version 1.9.76, I am no longer able to run my code with dev_appserver.py

截至 10 月 3 日,修复似乎正在进行中,但目前他们建议将 Google Cloud SDK 降级到 218.0.0 版:

As of Oct 3, a fix appears to be in the works, but for now they suggest downgrading Google Cloud SDK to version 218.0.0:

您似乎受到与 Google Cloud SDK 版本 [219.0.1] 中dev_appserver.py"中断有关的已知问题的影响.App Engine 专家目前正在努力解决该问题.然而目前没有预计到达时间.作为解决方法,您可以降级使用此命令的 Google Cloud SDK 版本:

It seems like you are affected by a known issue regarding ‘dev_appserver.py’ breaks in Google Cloud SDK version [219.0.1]. App Engine specialists are currently working to resolve it. However there is no ETA at this moment. As a workaround you can downgrade the Google Cloud SDK version using this command:

gcloud components update --version 218.0.0

问题的受让人将在问题解决后发布有关该问题的更新.

The assignee of the issue will post an update on that issue when it has been resolved.

更新(2018 年 10 月 9 日): Cloud SDK 版本 220.0.0 现已推出,该版本修复了 dev_appserver.py 问题.我更新了(通过 gcloud components update)并验证它有效.(注意:已经有一些关于问题跟踪器的抱怨说 dev_appserver.py 现在加载时间过长.我没有注意到与 218 版的显着差异,但我没有比较时间.)

UPDATE (OCT 9, 2018): Cloud SDK version 220.0.0, which fixes the dev_appserver.py issue, is now available. I updated (via gcloud components update) and verified that it works. (Note: there are already a couple of complaints on the Issue Tracker that dev_appserver.py takes too long to load now. I didn't notice a significant difference from version 218, but I didn't compare timings.)

这篇关于为什么 dev_appserver.py 报告“没有这样的文件或目录"?在今天的 gcloud 组件更新之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆