No acceleration for OpenGL and ImportError for modules that exist
Posted
by Aku
on Stack Overflow
See other posts from Stack Overflow
or by Aku
Published on 2010-03-27T06:27:00Z
Indexed on
2010/03/27
6:33 UTC
Read the original article
Hit count: 431
I'm writing a program using wxPython and OpenGL. The program works, but without any antialiasing, and I get these error messages: (I'm using ArchLinux)
INFO:OpenGL.acceleratesupport:No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
INFO:OpenGL.formathandler:Unable to load registered array format handler numpy:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/OpenGL/arrays/formathandler.py", line 44, in loadPlugin
plugin_class = entrypoint.load()
File "/usr/lib/python2.6/site-packages/OpenGL/plugins.py", line 14, in load
return importByName( self.import_path )
File "/usr/lib/python2.6/site-packages/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/python2.6/site-packages/OpenGL/arrays/numpymodule.py", line 11, in <module>
raise ImportError( """No numpy module present: %s"""%(err))
ImportError: No numpy module present: No module named numpy
INFO:OpenGL.formathandler:Unable to load registered array format handler numeric:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/OpenGL/arrays/formathandler.py", line 44, in loadPlugin
plugin_class = entrypoint.load()
File "/usr/lib/python2.6/site-packages/OpenGL/plugins.py", line 14, in load
return importByName( self.import_path )
File "/usr/lib/python2.6/site-packages/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/python2.6/site-packages/OpenGL/arrays/numeric.py", line 15, in <module>
raise ImportError( """No Numeric module present: %s"""%(err))
ImportError: No Numeric module present: No module named Numeric
However, when I look into my site-packages folder, I see those modules present there. I have a wxPython demo program that uses GLCanvas, and it works fine, without any errors.
My program is quite similar to the GLCanvas demo, involving just translations, rotations, drawing quads and some basic lighting.
What am I doing wrong here? (The code is over 200 lines, if necessary I'll edit this and put it here.)
© Stack Overflow or respective owner