gpt4 book ai didi

python - Google App Engine 教程中出现错误

转载 作者:行者123 更新时间:2023-12-01 05:40:32 24 4
gpt4 key购买 nike

我真的不明白为什么我的代码不起作用。我已经关注了tutorial确切地。但是,当我输入命令时:

 google_appengine/dev_appserver.py GoogleAppEngine/helloworld/

我收到以下错误消息:

Traceback (most recent call last): File "google_appengine/dev_appserver.py", line 182, in _run_file(file, globals()) File "google_appengine/dev_appserver.py", line 178, in _run_file execfile(script_path, globals_) File "/home/caseyp/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 695, in main() File "/home/caseyp/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 688, in main dev_server.start(options) File "/home/caseyp/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 525, in start options.yaml_files) File "/home/caseyp/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 556, in init server_configuration = ServerConfiguration(yaml_path) File "/home/caseyp/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 82, in init self._yaml_path) File "/home/caseyp/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 272, in _parse_configuration return appinfo_includes.ParseAndReturnIncludePaths(f) File "/home/caseyp/google_appengine/google/appengine/api/appinfo_includes.py", line 63, in ParseAndReturnIncludePaths appyaml = appinfo.LoadSingleAppInfo(appinfo_file) File "/home/caseyp/google_appengine/google/appengine/api/appinfo.py", line 1715, in LoadSingleAppInfo listener.Parse(app_info) File "/home/caseyp/google_appengine/google/appengine/api/yaml_listener.py", line 226, in Parse self._HandleEvents(self._GenerateEventParameters(stream, loader_class)) File "/home/caseyp/google_appengine/google/appengine/api/yaml_listener.py", line 177, in _HandleEvents raise yaml_errors.EventError(e, event_object) google.appengine.api.yaml_errors.EventError

我一直在阅读谷歌引擎代码,但无法弄清楚问题出在哪里!有什么想法吗?

最佳答案

在您的 app.yaml 中查找非 ASCII 字符,特别是如果您从 GAE 教程网页复制它。就我而言,emacs 添加了一个奇怪的第一个字符,删除后一切正常。另请检查您的编码。

关于python - Google App Engine 教程中出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17648868/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com