编写app.yaml libraries指令一直出错

时间:2012-12-14 18:39:59

标签: google-app-engine python-2.7

我使用谷歌提供的worldcount计划。 (https://developers.google.com/appengine/docs/python/dataprocessing/helloworld?hl=en) 编译中没有错误。

但是将以下内容添加到app.yaml

libraries:
- Name: numpy
  version: "1.6.1"

我收到错误:

Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\lib\webapp2\webapp2.py", line 1536, in __call__
    rv = self.handle_exception(request, response, e)
  File "C:\Program Files\Google\google_appengine\lib\webapp2\webapp2.py", line 1530, in __call__
    rv = self.router.dispatch(request, response)
  File "C:\Program Files\Google\google_appengine\lib\webapp2\webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "C:\Program Files\Google\google_appengine\lib\webapp2\webapp2.py", line 1101, in __call__
    handler = self.handler(request, response)

TypeError: __init__() takes at most 2 arguments (3 given)

我不知道为什么?请帮我一把感谢

我的代码来自https://developers.google.com/appengine/docs/python/dataprocessing/helloworld?hl=zh-tw#Downloading_the_Sample_Application

这是谷歌提供的代码。 我只需将以下内容添加到app.yaml

libraries:
- Name: numpy
  version: "1.6.1"

这是我的app.yaml

application: continue-tset
version: 20
runtime: python27
api_version: 1
threadsafe: no

handlers:

- url: /favicon.ico
  static_dir: static/images

- url: /mapreduce/pipeline/images
  static_dir: mapreduce/lib/pipeline/ui/images

- url: /static/js/custom.js
  static_files: static/js/custom.js
  upload: static/js/custom.js

- url: /mapreduce(/.*)?
  script: mapreduce/main.py

- url: .*
  script: main.py
  login: required

- url: /.*
  script: main.app


libraries:
- Name: numpy
  version: "1.6.1"

伸出援助之手。感谢。

0 个答案:

没有答案