Re: OpenGL.EGL import error

"Mike C. Fletcher" <[email protected]> Tue, 18 Mar 2014 23:42:30 -0400
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
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


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net