Hello, Dear All
I have about 40 python seperate files and want to
compile it into a executable. My source code works
very well. And the exe also works, but one of function
cannot work correctly, The error like following. But
the Tuple is defined in
/usr/lib/python2.4/site-packages/OpenGL-
3.0.0a4-py2.4.egg/OpenGL/Tk/__init__.py, in line 322.
But not my input value. I use pyopengl3.00a4.py2.4.
Anybody can explain it.
Error: 1
TypeError Exception in Tk callback
Function: <bound method NewGl.tkExpose of
<gldisp.NewGl instance at 0xb6e68cec>> (type: <type
'instancemethod'>)
Args: (<Tkinter.Event instance at 0xb6e7570c>,)
Event type: ConfigureNotify
Traceback (innermost last):
File "Pmw.py", line 1383, in __call__
None
File "/usr/lib/python2.4/site-packages/OpenGL-
3.0.0a4-py2.4.egg/OpenGL/Tk/__init__.py", line 548, in
tkExpose
self.basic_lighting()
File
"/usr/lib/python2.4/site-packages/OpenGL-3.0.0a4-py2.4.egg/OpenGL/Tk/__init__.py",
line 323, in basic_lighting
glLightfv(GL_LIGHT0, GL_POSITION, light_position)
File
"/usr/lib/python2.4/site-packages/OpenGL-3.0.0a4-py2.4.egg/OpenGL/wrapper.py",
line 1621, in __call__
return self.finalise()( *args, **named )
File
"/usr/lib/python2.4/site-packages/OpenGL-3.0.0a4-py2.4.egg/OpenGL/wrapper.py",
line 664, in wrapperCall
pyArgs.append( converter(arg, self, args) )
File "/usr/lib/python2.4/site-packages/OpenGL-
3.0.0a4-py2.4.egg/OpenGL/converters.py", line 113, in
__call__
return self.function( incoming )
File
"/usr/lib/python2.4/site-packages/OpenGL-3.0.0a4-py2.4.egg/OpenGL/arrays/arraydatatype.py",
line 52, in asArray
return cls.getHandler(value).asArray( value,
typeCode or cls.typeConstant )
File
"/usr/lib/python2.4/site-packages/OpenGL-3.0.0a4-py2.4.egg/OpenGL/arrays/arraydatatype.py",
line 31, in getHandler
raise TypeError(
TypeError: No array-type handler for type <type
'tuple'> (value: (1, 1, 1, 0) ) registered
Thanks,
John
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|