Bugs item #1864674, was opened at 2008-01-05 15:03
Message generated for change (Comment added) made by mcfletch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1864674&group_id=5988
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
>Group: v3.0.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Mike C. Fletcher (mcfletch)
Summary: PyOpenGL fails to pickle GL constants on Windows
Initial Comment:
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
gh...@di...
----------------------------------------------------------------------
>Comment By: Mike C. Fletcher (mcfletch)
Date: 2008-01-07 10:25
Message:
Logged In: YES
user_id=34901
Originator: NO
Fixed in the beta release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1864674&group_id=5988
|