在开始我的金字塔项目时,你能帮我解决下面的错误吗?
c:\Python33\Scripts\v_env_testmvc_cmd\Scripts>activate
(v_env_testmvc_cmd) c:\Python33\Scripts\v_env_testmvc_cmd\Scripts>cd..
(v_env_testmvc_cmd) c:\Python33\Scripts\v_env_testmvc_cmd>cd ..
(v_env_testmvc_cmd) c:\Python33\Scripts>pserve.exe MyProject\development.ini --reload
Traceback (most recent call last): File "c:\Python33\Scripts\pserve-script.py", line 9, in <module>
load_entry_point('pyramid==1.5a3', 'console_scripts', 'pserve')()
File "c:\Python33\lib\site-packages\distribute-0.6.49-py3.3.egg\pkg_resources.py", line 345, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\Python33\lib\site-packages\distribute-0.6.49-py3.3.egg\pkg_resources.py", line 2382, in load_entry_point
return ep.load()
File "c:\Python33\lib\site-packages\distribute-0.6.49-py3.3.egg\pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "c:\Python33\lib\site-packages\pyramid-1.5a3-py3.3.egg\pyramid\scripts\pserve.py", line 31, in <module>
from pyramid.paster import setup_logging
File "c:\Python33\lib\site-packages\pyramid-1.5a3-py3.3.egg\pyramid\paster.py", line 10, in <module>
from pyramid.scripting import prepare
File "c:\Python33\lib\site-packages\pyramid-1.5a3-py3.3.egg\pyramid\scripting.py", line 1, in <module>
from pyramid.config import global_registries
File "c:\Python33\lib\site-packages\pyramid-1.5a3-py3.3.egg\pyramid\config\__init__.py", line 9, in <module>
from webob.exc import WSGIHTTPException as WebobWSGIHTTPException
File "c:\Python33\lib\site-packages\webob-1.3.1-py3.3.egg\webob\exc.py", line 1134, in <module>
from paste import httpexceptions
File "c:\Python33\lib\site-packages\paste-1.7.5.1-py3.3.egg\paste\httpexceptio ns.py", line 77, in <module>
from paste.wsgilib import catch_errors_app
File "c:\Python33\lib\site-packages\paste-1.7.5.1-py3.3.egg\paste\wsgilib.py", line 331
raise exc_info[0], exc_info[1], exc_info[2]
^ SyntaxError: invalid syntax
你能帮我解决所有这些错误吗?
出现此问题的文件名是:C:\Python33\Lib\site-packages\paste-1.7.5.1-py3.3.egg\paste\wsgilib.py
答案 0 :(得分:0)
不要使用激活。而是将环境变量设置为虚拟环境路径,并在调用命令时使用它。详细信息在此setup guide中。或者,文档的主分支具有Windows installation of Pyramid的“前沿”,已经过教程和聚会参与者的全面测试。
完成后,请按照Creating a Pyramid Project中描述的过程进行操作。
答案 1 :(得分:0)
这是文档问题并已解决。已在最新文档中得到解决。 谢谢。