PyOpenGL加速+ numpy

时间:2013-12-19 09:50:14

标签: python numpy pyopengl

我正在Debian上安装MakeHuman,所以所有依赖项都已设置好,但启动它时出错:

SYS.PLATFORM: linux2
PLATFORM.MACHINE: x86_64
PLATFORM.PROCESSOR: 
PLATFORM.UNAME.RELEASE: 2.6.32.26
PLATFORM.LINUX_DISTRIBUTION: debian 6.0.6 
NUMPY.VERSION: 1.6.2
OpenGL_accelerate module loaded
Using accelerated ArrayDatatype
Unable to load numpy_formathandler accelerator from OpenGL_accelerate
Unable to load registered array format handler numeric
Traceback (most recent call last):
  File "makehuman.py", line 310, in <module>
    main()
  File "makehuman.py", line 300, in main
    from mhmain import MHApplication
  File "./core/mhmain.py", line 32, in <module>
    import mh
  File "./lib/mh.py", line 29, in <module>
    from glmodule import updatePickingBuffer, grabScreen, hasRenderSkin, renderSkin
  File "./lib/glmodule.py", line 33, in <module>
    from OpenGL.GL import *
  File "/usr/lib/python2.7/dist-packages/OpenGL/GL/__init__.py", line 3, in <module>
    from OpenGL.raw.GL.annotations import *
  File "/usr/lib/python2.7/dist-packages/OpenGL/raw/GL/annotations.py", line 40, in <module>
    'v',
  File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/arrayhelpers.py", line 197, in setInputArraySizeType
    function.setPyConverter( argName, asArrayTypeSize(type, size) )
  File "arraydatatype.pyx", line 393, in OpenGL_accelerate.arraydatatype.AsArrayTypedSizeChecked.__init__ (src/arraydatatype.c:7688)
AttributeError: 'module' object has no attribute 'sizeof'

有没有人解决链接PyOpenGL + numpy的问题?

1 个答案:

答案 0 :(得分:1)

通过发出:

修复了我的系统
  

sudo easy_install -U PyOpenGL


注意:

祝你好运