PyOpenGL

Diez B. Roggisch deets at nospam.web.de
Mon Feb 4 08:10:18 EST 2008


groups.diegopark at gmail.com wrote:

> Hi all,
> 
> I apologize if this question was already answered before but I was
> unable to find a proper solution to my problem. Anyways, I am trying
> to run shaderobjects.py on Windows (Python 2.5.1) by just double-
> clicking, and I got the following error:
> 
> [...]
> File "/usr/lib/python2.5/site-packages/OpenGL/extensions.py", line 13,
> in hasGLExtension
> AVAILABLE_GL_EXTENSIONS[:] = glGetString( GL_EXTENSIONS ).split()
> AttributeError: 'NoneType' object has no attribute 'split'
> 
> _I think_ I have all requirements and packages properly installed.
> 
> Any clues? Thanks in advance !

http://pyopengl.sourceforge.net/documentation/manual/glGetString.3G.html

"""
Notes
 If an error is generated, glGetString returns 0. 
"""

seems to be the case here. Check for whatever the error-code is - glGetError
is your friend.

Diez



More information about the Python-list mailing list