Re: [PyOpenGL-Users] OpenGL.EGL import error
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2014-03-19 03:42:37
|
On 14-03-10 02:09 PM, Jan Harms wrote:
> I am trying to install the newest PyOpenGL version but I get an
> AttributeError when trying to import OpenGL.EGL:
...
> AttributeError: 'GLXPlatform' object has no attribute 'EGL'
>
> I am working on Ubuntu 12.04, Python 2.7.6.
> Any idea why I get this error or how to solve it?
You need to specify the platform at the command line (or in your script,
by setting the environment variable):
PYOPENGL_PLATFORM=egl python -c "from OpenGL import EGL"
by default the common platform for the OS is used, which on Linux is
GLXPlatform, choosing the EGL or OSMesa platforms has to be done explicitly.
HTH,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|