我使用谷歌提供的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)
我不知道为什么?请帮我一把感谢
这是谷歌提供的代码。
我只需将以下内容添加到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"
伸出援助之手。感谢。