[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

groups.diegopark@gmail.com

2/4/2008 1:00:00 PM

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 !

Regards,
Diego Park
2 Answers

Diez B. Roggisch

2/4/2008 1:10:00 PM

0

groups.diegopark@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/glGetStri...

"""
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

Mike C. Fletcher

2/4/2008 4:44:00 PM

0

groups.diegopark@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 !
>
That *looks* like a problem with calling glGetString before you have a
valid context. Normally that actually works on GLX platforms, but
apparently not in this case. Try delaying your import until after you
have the context setup and see if that lets glGetString return a valid
pointer.

HTH,
Mike

--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrp...
http://blog.vrp...