Crash with python 3.5 on ubuntu 16.04
Joel Palmius <[email protected]> Mon, 20 Feb 2017 21:07:50 +0000
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <AM4PR0802MB2132D26959EF1B2844FC420EDB5E0@AM4PR0802MB2132.eurprd08.prod.outlook.com> |
(cross-posted from the -devel list)
I have a very simple script:
#!/usr/bin/python3
import OpenGL
from OpenGL.GL import *
Running=A0this script with python 3.5.1 on an updated ubuntu 16.04 causes t=
he following stack trace:
Traceback (most recent call last):
=A0 File "test.py", line 3, in <module>
=A0=A0=A0 from OpenGL.GL import *
=A0 File "/usr/lib/python3/dist-packages/OpenGL/GL/__init__.py", line 3, in=
<module>
=A0=A0=A0 from OpenGL.GL.VERSION.GL_1_1 import *
=A0 File "/usr/lib/python3/dist-packages/OpenGL/GL/VERSION/GL_1_1.py", line=
10, in <module>
=A0=A0=A0 from OpenGL import platform, constants, constant, arrays
=A0 File "/usr/lib/python3/dist-packages/OpenGL/arrays/__init__.py", line 2=
2, in <module>
=A0=A0=A0 formathandler.FormatHandler.loadAll()
=A0 File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", l=
ine 28, in loadAll
=A0=A0=A0 cls.loadPlugin( entrypoint )
=A0 File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", l=
ine 35, in loadPlugin
=A0=A0=A0 plugin_class =3D entrypoint.load()
=A0 File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 14, in lo=
ad
=A0=A0=A0 return importByName( self.import_path )
=A0 File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 28, in im=
portByName
=A0=A0=A0 module =3D __import__( ".".join(moduleName), {}, {}, moduleName)
=A0 File "/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py", line 430, i=
n <module>
=A0=A0=A0 def mapVBO( vbo, access=3DGL.GL_READ_WRITE ):
AttributeError: module 'OpenGL.GL' has no attribute 'GL_READ_WRITE'
Running exactly the same script with python 2.7.12 does not cause any crash.
The installed version of pyopengl is 3.0.2.
Is this a bug with pyopengl, and is this mailing list then the appropriate =
place to report it?
---------------------------------------------------------------------------=
---
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net