On a Windows XP machine using Python2.5 and PyOpenGL-3.0.0a7, an attempt to cPickle a
GL constant fails on loading it back in.
Here's the error produced:
Traceback (most recent call last):
File "tp.py", line 11, in <module>
TypeError: __new__() takes exactly 3 arguments (2 given)
Here's the tiny example that produced that error:
from OpenGL.GL import GL_DECAL
print type(GL_DECAL), int(GL_DECAL)
f = open('dumpfile','wb')
f = open('dumpfile','rb')
Log in to post a comment.