Samstag, 4. April 2009

Bizarro Error "AttributeError: __class__"

In case of errors of the following form:


$ python test.py
No handlers could be found for logger "OpenGL.arrays.arraydatatype"
Traceback (most recent call last):
File "test.py", line 135, in
jpg_file_write("helix/helix", t, glReadPixels( 0,0, 800, 600, GL_RGBA, GL_UNSIGNED_BYTE))
File "/var/lib/python-support/python2.5/OpenGL/GL/images.py", line 319, in glReadPixels
imageData = arrayType.dataPointer(array)
File "/var/lib/python-support/python2.5/OpenGL/arrays/arraydatatype.py", line 38, in dataPointer
return cls.getHandler(value).dataPointer( value )
File "/var/lib/python-support/python2.5/OpenGL/arrays/formathandler.py", line 17, in __call__
typ = value.__class__
AttributeError: __class__


Try to install the latest PyOpenGL package.

Keine Kommentare:

Kommentar veröffentlichen