上传应用到Google App Engine时遇到问题
我正在学习如何使用谷歌应用引擎,因为我想用stashboard(看起来是个很棒的工具)。不过,我在跟着一个“你好,世界”的教程,地址是http://code.google.com/appengine/docs/python/gettingstarted/helloworld.html,我想尝试把它部署上去。当我在GAE启动器里点击运行时,日志里出现了这个信息:
2010-12-09 13:52:42 Running command: "['C:\\Python31\\pythonw.exe', 'C:\\Program Files\\Google\\google_appengine\\dev_appserver.py', '--admin_console_server=', '--port=8085', u'C:\\Documents and Settings\\pgoulet\\Desktop\\helloworld']"
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 69, in <module>
run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 65, in run_file
execfile(script_path, globals_)
NameError: global name 'execfile' is not defined
2010-12-09 13:52:42 (Process exited with code 1)
然后我在网页浏览器里试着打开,但什么也没发生。 有人知道这是为什么吗?
谢谢!
1 个回答
4
Google App Engine 支持 Python 2.x 的 2.5 版本或更高版本。如果你在用 Python 3.1,可以下载 Python 2.6 或 2.7,这样就可以正常使用了。