[Python-modules-team] Bug#515748: python-opengl: register plugin problem (3.0.0~b6-3)

vwf vwf at vulkor.net
Tue Feb 17 11:51:15 UTC 2009


Package: python-opengl
Version: 3.0.0~b6-3

Hello,

For drawing large text/characters I use a stripped down version of
Michael C. Fletcher's OpenGLContext, pygamefont.py
I cut it down to the bare essentials, one file that does all the work.

By upgrading from Debian Stable to Testing I ran into a problem.
After the upgrade, during initialisation, I get:

Traceback (most recent call last):
[...]
  File "/home/.../fppu/manavnew/pyfont.py", line 187, in textureToList
    array,                                                            
  File "/usr/lib/python2.4/site-packages/OpenGL/wrapper.py", line 1631,
in __call__
    return self.finalise()( *args, **named )
  File "/usr/lib/python2.4/site-packages/OpenGL/wrapper.py", line 502,
in wrapperCall
    pyArgs.append( converter(arg, self, args) )
  File "/usr/lib/python2.4/site-packages/OpenGL/GL/images.py", line 422,
in __call__
    return self.arrayType.asArray( arg )
  File
"/usr/lib/python2.4/site-packages/OpenGL/arrays/arraydatatype.py", line
70, in asArray
    return cls.getHandler(value).asArray( value, typeCode or
cls.typeConstant )
  File
"/usr/lib/python2.4/site-packages/OpenGL/arrays/arraydatatype.py", line
39, in getHandler
    raise TypeError(
TypeError: No array-type handler for type <type 'array'> (value:
array([[[200,   0],
        [200,   0],
        [2) registered

The calling line is line 68 of
OpenGLContext-2.1.0a2/scenegraph/text/pygamefont.py

  glDrawPixelsub(
          mode,
          array,
  )

I posted this problem on the pyopengl mail-list. 
The maintainer, Michael C. Fletcher, gave this reply:
"Looks like Debian testing is using one of the earlier betas which used
setuptools for registering plugins, but has not run setuptools to
register the plugins.
It's a failure to lookup a format-handler plugin from the old code that
handled the plugin lookups."

I do not know more than Fletcher, so I would like to report this as a
Debian bug. My system is described as Debian Testing, but that is Stable
today (Lenny). Trying to build the new library (3.0.0c1) failed due to 
lack of experience on my side.

Thank you

Frits





More information about the Python-modules-team mailing list