gpt4 book ai didi

google-app-engine - 解析 yaml 文件时出错 : mapping values are not allowed here

转载 作者:太空宇宙 更新时间:2023-11-03 15:17:20 25 4
gpt4 key购买 nike

我想将应用程序上传到 Google App Engine:

我明白了

Error parsing yaml file:
mapping values are not allowed here
in "/home/antonio/Desktop/ATI/climate-change/app.yaml", line 2, column 8

运行时

./appcfg.py update /home/antonio/Desktop/ATI/climate-change

使用这个 app.yaml 文件:

application:climate-change
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /.*
script: helloworld.app

第 2 行第 8 列对应于版本行。这里有什么问题?顺便说一句,我在这里使用的是 Ubuntu 12.04。

最佳答案

改变

application:climate-change

application: climate-change

如果你想要一个键值对,冒号后面的空格在yaml中是强制性的。 (参见 http://www.yaml.org/spec/1.2/spec.html#id2759963)

关于google-app-engine - 解析 yaml 文件时出错 : mapping values are not allowed here,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10971621/

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