Re: [PyOpenGL-Users] Crash with python 3.5 on ubuntu 16.04
Brought to you by:
mcfletch
|
From: Joel P. <joe...@ho...> - 2017-02-22 10:37:34
|
As a follow-up: I got an answer sent to me privately rather than to the list, and it solved the problem for my part. Posting the solution here for people who run into the same issue. In order to avoid the crash "AttributeError: module 'OpenGL.GL' has no attribute 'GL_READ_WRITE'", it is sufficient to import OpenGL.GLU before OpenGL.GL. The following code crashes (on some machines, under unknown circumstances, on ubuntu 16.04) with the stack trace in the original post: #!/usr/bin/python3 import OpenGL from OpenGL.GL import * The following code does not crash: #!/usr/bin/python3 import OpenGL import OpenGL.GLU from OpenGL.GL import * I don't understand the reason for this behavior, but the solution is derived from a bug report posted at python's bug tracker: https://bugs.python.org/issue26245 |