我一直在尝试在线跟踪tutorial并且我跟踪了每一行,出于某种原因我收到以下错误:
Traceback (most recent call last):
File "C:/Users/User/Desktop/OpenGLContextTest.py", line 2, in <module>
from OpenGLContext import testingcontext
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\testingcontext.py", line 10, in <module>
from OpenGLContext import plugins, context, contextdefinition
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\context.py", line 32, in <module>
from OpenGLContext import visitor, texturecache,plugins
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\visitor.py", line 3, in <module>
from OpenGLContext.scenegraph import nodepath
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\scenegraph\nodepath.py", line 3, in <module>
from vrml.vrml97 import nodepath, nodetypes
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\vrml97\nodepath.py", line 4, in <module>
from vrml import nodepath
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\nodepath.py", line 3, in <module>
from vrml import node, weaklist
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\node.py", line 6, in <module>
from vrml import field, fieldtypes, weaklist, weakkeydictfix
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\field.py", line 2, in <module>
from pydispatch import dispatcher, robustapply
ImportError: No module named pydispatch
我试图在谷歌上搜索本教程可能被破坏的东西,但我不相信。我有pydispatch并试图使用easy_install
安装它,但没有任何变化。有人可以帮我这个吗?我知道代码是完全正确的,因为一段时间后我复制并粘贴了所有内容以确保它不是我的语法。
答案 0 :(得分:9)
说明(显然不正确)说安装pydispatcher
。在安装模块PyDispatcher
之前,我遇到了同样的问题。令人困惑的是,两者都存在。
答案 1 :(得分:4)
澄清@ Phil的答案。
我看到了:
No module named pydispatch
所以我做了:
sudo pip install pydispatch
安装有效,但是Scrapy仍然没有用,因为我们应该:
sudo pip install pydispatcher
答案 2 :(得分:2)