1.2 progress showstopper: docs on pyglet architecture

30 views
Skip to first unread message

anatoly techtonik

unread,
Nov 8, 2011, 6:21:37 AM11/8/11
to pyglet...@googlegroups.com
I'm trying to understand what are capabilities of my system, is it supported by pyglet and what is required to make it work, but..

Attempt to run tools/gl_info.py gives a traceback:

What steps will reproduce the problem?
1.hg clone https://code.google.com/p/pyglet/
2.cd pyglet
3.PYTHONPATH=. python tools/gl_info.py 

Paste in the traceback or error message:
...
File "/home/user07/pyglet/pyglet/gl/glu_info.py", line 92, in set_active_context
    asstr(cast(gluGetString(GLU_EXTENSIONS), c_char_p).value).split()
NameError: global name 'gluGetString' is not defined

Full info is here - http://code.google.com/p/pyglet/issues/detail?id=541


I'd like to fix the problem, but must admit I am not an OpenGL expert, and without high-level overview of pyglet architecture (and enough time to reverse it myself) it's really hard to get started. If anyone can come up with a good post about ties of pyglet with OpenGL subsystems - it will surely be appreciated by many Python developers, who are also potential pyglet users (+1 if you agree).

Adam Bark

unread,
Nov 8, 2011, 3:11:19 PM11/8/11
to pyglet...@googlegroups.com
On 08/11/11 11:21, anatoly techtonik wrote:
> I'm trying to understand what are capabilities of my system, is it
> supported by pyglet and what is required to make it work, but..
>
> Attempt to run tools/gl_info.py gives a traceback:
>
> *What steps will reproduce the problem?*

> 1.hg clone https://code.google.com/p/pyglet/
> 2.cd pyglet
> 3.PYTHONPATH=. python tools/gl_info.py
>
> *Paste in the traceback or error message:*

> ...
>
> File "/home/user07/pyglet/pyglet/gl/glu_info.py", line 92, in set_active_context
>
> asstr(cast(gluGetString(GLU_EXTENSIONS), c_char_p).value).split()
> NameError: global name 'gluGetString' is not defined
>
>
> Full info is here - http://code.google.com/p/pyglet/issues/detail?id=54
> <http://code.google.com/p/pyglet/issues/detail?id=541&q=gl_info&sort=-stars&colspec=ID%20Status%20Type%20Milestone%20OpSys%20Summary%20Stars>1

>
>
> I'd like to fix the problem, but must admit I am not an OpenGL expert,
> and without high-level overview of pyglet architecture (and enough time
> to reverse it myself) it's really hard to get started. If anyone can
> come up with a good post about ties of pyglet with OpenGL subsystems -
> it will surely be appreciated by many Python developers, who are also
> potential pyglet users (+1 if you agree).
>
You'll need to get the gl and glu header packages; in ubuntu based
distros they usually end -dev.

HTH,
Adam.

anatoly techtonik

unread,
Nov 9, 2011, 4:23:38 AM11/9/11
to pyglet...@googlegroups.com
Thanks. It seems I've run some generator from tools/ and it cleaned the contents of pyglet/gl/glu.py - it would be nice if this generator warned about missing header beforehand. 
Reply all
Reply to author
Forward
0 new messages