简体   繁体   English

Google App Engine Python上传错误

[英]Google App Engine Python Upload Error

I am not sure why I am getting this error when trying to deploy my Python API via the Google App Engine Launcher. 在尝试通过Google App Engine Launcher部署我的Python API时,我不确定为什么会出现此错误。

Any Ideas what it is that I have going on here? 任何想法我在这里发生了什么? Below is the error and my associated App.yaml file. 下面是错误和我关联的App.yaml文件。

appcfg.py: error: Error parsing C:\Users\MYNAME\Desktop\Workspace\Imhotep\Imhotep\app.yaml: while parsing a block mapping
      in "C:\Users\MYNAME\Desktop\Workspace\Imhotep\Imhotep\app.yaml", line 1, column 1
    expected <block end>, but found '<block sequence start>'
      in "C:\Users\MYNAME\Desktop\Workspace\Imhotep\Imhotep\app.yaml", line 14, column 2.
    2013-11-17 20:37:33 (Process exited with code 2)





application: <IHAVEMYAPPIDHERE - PROVIDED BY GAE>
version: 1
runtime: python27
threadsafe: true
api_version: 1

handlers:
 # Static assets
- url: /images
  static_dir: static/images


 # Endpoints handler
 - url: /_ah/spi/.*
  script: imhotep_api.APPLICATION

Whitespace is important in yaml files. 空白在yaml文件中很重要。

It looks like there's an extra space in front of the 2nd url line. 看起来第二个网址前面有一个额外的空间。

I'm not sure if the extra blank lines cause problems. 我不确定额外的空白行是否会导致问题。

Oh, and if you're having problems deploying, it probably means you should have tested locally first. 哦,如果您在部署时遇到问题,可能意味着您应该首先在本地进行测试。

I just noticed that in all of my app.yaml files threadsafe is set to 'yes' and not 'true'. 我只是注意到在我的所有app.yaml文件中,线程安全设置为'是'而不是'真'。 Also, possibly more importantly, I have never seen the '.APPLICATION' extension in a .yaml file. 此外,可能更重要的是,我从未在.yaml文件中看到'.APPLICATION'扩展名。 In all of mine, and all the .yaml's I have seen it is '.app'. 在我的全部,以及我看到的所有.yaml都是'.app'。

Ex: script: imhotep_api.app 例如:脚本:imhotep_api.app

sorry if that's of no help. 对不起,如果那没有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM