【发布时间】:2024-01-20 15:45:01
【问题描述】:
我想将应用上传到 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。
【问题讨论】:
-
确保您没有从 Skype 或某些软件复制文本。首先将文本粘贴到文本编辑器中,然后从那里复制。我从 Skype 复制,显然没有问题。我通过简单地删除然后重新输入“空格”来创建有效的(Unix)空格来解决它。