我看了一下app engine python tutorial error這個問題。它不回答我的問題,所以這不是一個重複的問題:)Google App引擎出現問題Python教程
我遵循Google App Engine Python教程。當我嘗試運行第4部分「使用用戶服務」中的示例時,我遇到了麻煩。當我按照說明我得到這個錯誤:
2015-02-06 17:56:22 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'C:\\Users\\plankton\\google_app_eng\\helloworld\\helloworld']"
INFO 2015-02-06 17:56:26,164 devappserver2.py:745] Skipping SDK update check.
INFO 2015-02-06 17:56:26,203 api_server.py:172] Starting API server at: http://localhost:52731
INFO 2015-02-06 17:56:26,210 dispatcher.py:186] Starting module "default" running at: http://localhost:8080
INFO 2015-02-06 17:56:26,213 admin_server.py:118] Starting admin server at: http://localhost:8000
ERROR 2015-02-07 01:57:04,624 wsgi.py:263]
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 302, in _LoadHandler
raise err
ImportError: <module 'main' from 'C:\Users\plankton\google_app_eng\helloworld\helloworld\main.pyc'> has no attribute app
INFO 2015-02-06 17:57:04,651 module.py:718] default: "GET/HTTP/1.1" 500 -
這裏是,我有麻煩的教程部分鏈接:Using the Users Service 有任何人能幫助我嗎?
謝謝!
更新:謝謝亞歷克斯!我想我明白你的觀點。
$ diff main.py main.py.500err
44c44
< app = webapp2.WSGIApplication([
---
> application = webapp2.WSGIApplication([