解析yaml文件时出错:这里不允许使用映射值 [英] Error parsing yaml file: mapping values are not allowed here

查看:500
本文介绍了解析yaml文件时出错:这里不允许使用映射值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将应用程式上传至Google App Engine:

我得到这个

 解析yaml文件时出错:
映射值在这里是不允许的
在/home/antonio/Desktop/ATI/climate-change/app.yaml第2行第8列

运行时

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



<

 应用程序:climate-change 
版本:1
运行时:python27
api_version:1
threadsafe:true

处理程序:
- url:/.*
脚本:helloworld.app

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

解决方案

 应用:气候变化

  application:climate-change 

冒号后的空格为必填项在yaml。 (请参阅 http://www.yaml.org/spec/1.2/spec.html #id2759963


I want to upload an app to Google App Engine:

I get this

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

When running

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

with this app.yaml file:

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

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

line 2, column 8 corresponds to the version line. What is wrong here? Btw, I'm using Ubuntu 12.04 here.

解决方案

Change

application:climate-change

to

application: climate-change

The space after the colon is mandatory in yaml. (See http://www.yaml.org/spec/1.2/spec.html#id2759963)

这篇关于解析yaml文件时出错:这里不允许使用映射值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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