Public bug reported:
In Python 2:
Python 2.7.6 (default, Nov 26 2013, 12:47:31)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GL import *
>>> import cPickle
>>> cPickle.loads(cPickle.dumps(GL_STATIC_DRAW))
GL_STATIC_DRAW
>>> cPickle.loads(cPickle.dumps(GL_STATIC_DRAW, -1))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __new__() takes exactly 3 arguments (2 given)
In Python 3:
Python 3.3.3 (default, Nov 26 2013, 13:47:45)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pickle
>>> from OpenGL.GL import *
>>> pickle.loads(pickle.dumps(GL_STATIC_DRAW))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __new__() missing 1 required positional argument: 'value'
>>> pickle.loads(pickle.dumps(GL_STATIC_DRAW, 0))
GL_STATIC_DRAW
** Affects: pyopengl (Ubuntu)
Importance: Undecided
Status: New
** Summary changed:
- Pickle module fail to load `IntConstant` with protocal 2
+ Pickle module fail to load `IntConstant` with protocol 2
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1270537
Title:
Pickle module fail to load `IntConstant` with protocol 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1270537/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs