编程语言
首页 > 编程语言> > python – 没有模块在使用pyOpenGL时命名为pydispatch

python – 没有模块在使用pyOpenGL时命名为pydispatch

作者:互联网

我一直试图在线跟踪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安装它,但没有任何变化.有人可以帮我这个吗?我知道代码是完全正确的,因为一段时间后我复制并粘贴了所有内容以确保它不是我的语法.

解决方法:

说明(显然不正确)说要安装pydispatcher.在安装模块PyDispatcher之前,我遇到了同样的问题.令人困惑的是,两者都存在.

标签:python,pyopengl
来源: https://codeday.me/bug/20190713/1450110.html