SyntaxError: invalid syntax in Play Framework 1.1
follow, http://www.oschina.net/bbs/thread/9568
and play 1.1 was encountered SyntaxError: invalid syntax, why?
play-1.1]$ play
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ | |/ _' | || |_|
~ | __/|_|____|__ (_)
~ |_| |__/
~
~ play! 1.1, http://www.playframework.org
~
Traceback (most recent call last):
File "./play", line 96, in ?
cmdloader = CommandLoader(play_env["basedir"])
File "/projects/iv/play-1.1/framework/pym/play/cmdloader.py", line 9, in __init__
self.load_core()
File "/projects/iv/play-1.1/framework/pym/play/cmdloader.py", line 15, in load_core
mod = load_python_module(name, self.path)
File "/projects/iv/play-1.1/framework/pym/play/cmdloader.py", line 39, in load_python_module
return imp.load_module(name, mod_desc[0], mod_desc[1], mod_desc[2])
File "/projects/iv/play-1.1/framework/pym/play/commands/modulesrepo.py", line 106
done = self.proc(bits, filesize) if bits != filesize else 100
^
SyntaxError: invalid syntax
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是python的版本太低,play1.1需要python2.5以上的版本。
好像是python版本太低,为什么官方网上不说用什么版本的python?
python -V
Python 2.4.3