[PyOpenGL-Devel] [ pyopengl-Bugs-1864674 ] PyOpenGL fails to pickle GL constants on Windows
Brought to you by:
mcfletch
|
From: SourceForge.net <no...@so...> - 2008-01-05 20:03:41
|
Bugs item #1864674, was opened at 2008-01-05 12:03 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) 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... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1864674&group_id=5988 |