pyOpenGL Error unable to detect undefined names

Ron ronsoule at gmail.com
Thu Dec 2 12:18:06 EST 2010


Hello,

I am trying to use pyOpenGL and I keep getting the following errors:

Traceback (most recent call last):
  File "C:\Temp\Python\OpenGL_Test.py", line 10, in <module>
    from OpenGL.GLU import *
  File "C:\Python26\lib\site-packages\OpenGL\GLU\__init__.py", line 4,
in <module>
    from OpenGL.raw.GLU import *
  File "C:\Python26\lib\site-packages\OpenGL\raw\GLU\__init__.py",
line 6, in <module>
    from OpenGL.raw.GLU.constants import *
  File "C:\Python26\lib\site-packages\OpenGL\raw\GLU\constants.py",
line 7, in <module>
    from OpenGL import platform, arrays
  File "C:\Python26\lib\site-packages\OpenGL\arrays\__init__.py", line
22, in <module>
    formathandler.FormatHandler.loadAll()
  File "C:\Python26\lib\site-packages\OpenGL\arrays\formathandler.py",
line 37, in loadAll
    cls.loadPlugin( entrypoint )
  File "C:\Python26\lib\site-packages\OpenGL\arrays\formathandler.py",
line 44, in loadPlugin
    plugin_class = entrypoint.load()
  File "C:\Python26\lib\site-packages\OpenGL\plugins.py", line 14, in
load
    return importByName( self.import_path )
  File "C:\Python26\lib\site-packages\OpenGL\plugins.py", line 28, in
importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "C:\Python26\lib\site-packages\OpenGL\arrays\numpymodule.py",
line 25, in <module>
    from OpenGL_accelerate.numpy_formathandler import NumpyHandler
  File "numpy.pxd", line 30, in OpenGL_accelerate.numpy_formathandler
(src\numpy_formathandler.c:3543)
ValueError: numpy.dtype does not appear to be the correct type object

The code is very simple all I have is two import statements:
from OpenGL.GLU import *
from OpenGL.GL import *

The code analysis says that it is "unable to detect undefined names".
What does that mean and how do I fix it? Is it an installation error?

Thanks for the help,
Ron



More information about the Python-list mailing list