使用Google App Engine问题上传应用

时间:2010-12-09 18:54:20

标签: python google-app-engine google-apps

我正在尝试学习如何使用谷歌应用引擎,因为我想使用仪表板(看起来像一个很棒的工具)但无论如何,我正在关注你好世界教程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 个答案:

答案 0 :(得分:4)

Google App引擎支持2.5或更高版本的基于Python 2.x的版本,您使用python 3.1,下载python 2.6或2.7&amp;它会正常工作