0

如屏幕截图所示,当我尝试从终端在 Google App 引擎中运行我的 helloworld.py 脚本时出现以下错误。#我的操作系统:Ubuntu.14.# 在此处输入图像描述

这是我的文件app.yaml。

application: #My project Id.
version: 1
runtime: python27
threadsafe: true
api_version: 1 

handlers: 
- url: /static
  static_dir: static
- url: /
  static_files: static/index.html
  upload: static/index\.html
  secure: always 
- url: /_ah/spi/.*
  script: helloworld_api.app
libraries:

- name: endpoints
  version: 1.0

问题是我无法在本地机器上部署我的代码。任何帮助将不胜感激。谢谢 :) 我检查了 Online Yaml 解析器,它也显示了它的有效性。

4

1 回答 1

0

您缺少行,端点库实际上被解释为处理程序列表的一部分,这是不正确的。

应该是这样的:

...
- url: /_ah/spi/.*
  script: helloworld_api.app

libraries:
- name: endpoints
  version: 1.0
于 2015-07-01T12:49:12.217 回答