Crash with python 3.5 on ubuntu 16.04

Joel Palmius <[email protected]> Mon, 20 Feb 2017 21:01:53 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <AM4PR0802MB2132AA0057928C793FD84732DB5E0@AM4PR0802MB2132.eurprd08.prod.outlook.com>
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):
  File "test.py", line 3, in <module>
    from OpenGL.GL import *
  File "/usr/lib/python3/dist-packages/OpenGL/GL/__init__.py", line 3, in <=
module>
    from OpenGL.GL.VERSION.GL_1_1 import *
  File "/usr/lib/python3/dist-packages/OpenGL/GL/VERSION/GL_1_1.py", line 1=
0, in <module>
    from OpenGL import platform, constants, constant, arrays
  File "/usr/lib/python3/dist-packages/OpenGL/arrays/__init__.py", line 22,=
 in <module>
    formathandler.FormatHandler.loadAll()
  File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", lin=
e 28, in loadAll
    cls.loadPlugin( entrypoint )
  File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", lin=
e 35, in loadPlugin
    plugin_class =3D entrypoint.load()
  File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 14, in load
    return importByName( self.import_path )
  File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 28, in impo=
rtByName
    module =3D __import__( ".".join(moduleName), {}, {}, moduleName)
  File "/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py", line 430, in =
<module>
    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