【发布时间】:2015-02-07 02:00:45
【问题描述】:
我看过问题app engine python tutorial error。它没有回答我的问题,所以这不是一个重复的问题:)
我正在学习 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([
【问题讨论】: