RuntimeError:无法确定web2py版本

时间:2013-06-09 00:33:00

标签: python runtime-error web2py

我在我的系统上下载并安装了web2py 2.5.1 stable,并且通过运行w2p_run阅读了我试图启动应用程序的书,但是我遇到了这个例外:

jorge [~] ~> w2p_run 
WARNING:root:Unable to import plural rules: No module named plural_rules
Traceback (most recent call last):
  File "/usr/bin/w2p_run", line 5, in <module>
    pkg_resources.run_script('web2py==2.5.1-stable-timestamp.2013.06.06.15.39.19', 'w2p_run')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 505, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1245, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/EGG-INFO/scripts/w2p_run", line 17, in <module>
    import gluon.widget
  File "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/widget.py", line 25, in <module>
    import main
  File "/usr/lib/python2.7/site-packages/web2py-2.5.1_stable_timestamp.2013.06.06.15.39.19-py2.7.egg/gluon/main.py", line 120, in <module>
    raise RuntimeError("Cannot determine web2py version")
RuntimeError: Cannot determine web2py version
jorge [~] ~> 

我真的想开始使用web2py,那么,有什么帮助吗? :(

1 个答案:

答案 0 :(得分:0)

您应该使用以下命令启动web2py:

python web2py.py

https://github.com/web2py/web2py#installation-instructions