1

我使用谷歌提供的 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"

帮帮我。谢谢。

4

0 回答 0