Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#181 PyOpenGL fails to pickle GL constants on Windows

v3.0.0
closed-fixed
None
5
2008-01-07
2008-01-05
Anonymous
No

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>
print cPickle.load(f)
TypeError: __new__() takes exactly 3 arguments (2 given)

Here's the tiny example that produced that error:

import cPickle
from OpenGL.GL import GL_DECAL

print type(GL_DECAL), int(GL_DECAL)

f = open('dumpfile','wb')
cPickle.dump(GL_DECAL,f,2)
f.close()

f = open('dumpfile','rb')
print cPickle.load(f)
f.close()

Gary Herron
gherron@digipen.edu

Discussion

    • milestone: --> v3.0.0
    • assigned_to: nobody --> mcfletch
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=34901
    Originator: NO

    Fixed in the beta release.