Having got no traction on this I opted instead to ditch pyopengl entirely,
the port is done and working locally, I haven't had a chance to inflict it
on the client yet, but assuming it works I guess this issue is kinda
irrelevant now (at least to me).

I do have a question arising from the port. How do people generally manage
pyglet.gl? I'm reluctant to import * as there's 5800 symbols in there
including the oh so usefully named "util". However having gl.gl throughout
my code also seems a bit silly. Also what are the 1000 PFNGL* symbols for?

G

On Sun, May 22, 2011 at 7:50 PM, Tolomea <[email protected]> wrote:

> I have this application that's was originally written with pyopengl,
> using glut for windowing.
> I package this with bbfreeze and distribute it to a client.
> I've recently ported all the window handling to pyglet, this works
> fine on my machine, but on the clients machine it produces the
> following stack dump on startup.
>
> Traceback (most recent call last):
>  File "<string>", line 6, in <module>
>  File "_main_.py", line 128, in <module>
>  File "_main__main_.py", line 46, in <module>
>  File "client.py", line 313, in main
>  File "client.py", line 301, in main
>  File "ui/common.py", line 93, in run
>  File "pyglet/app/_init_.py", line 264, in run
>  File "pyglet/app/xlib.py", line 93, in run
>  File "pyglet/app/_init_.py", line 193, in idle
>  File "pyglet/window/_init_.py", line 1219, in dispatch_event
>  File "pyglet/event.py", line 349, in dispatch_event
>  File "ui/common.py", line 143, in _draw
>  File "ui/common.py", line 322, in _draw
>  File "ui/common.py", line 320, in draw
>  File "ui/common.py", line 320, in draw
>  File "ui/common.py", line 320, in draw
>  File "ui/common.py", line 320, in draw
>  File "ui/common.py", line 318, in draw
>  File "ui/nodes.py", line 166, in _draw
>  File "ui/common.py", line 81, in vertex_array
>  File "OpenGL/latebind.py", line 45, in _call_
>  File "OpenGL/wrapper.py", line 532, in wrapperCall
>  File "OpenGL/arrays/arrayhelpers.py", line 153, in _call_
>  File "OpenGL/contextdata.py", line 57, in setValue
>  File "OpenGL/contextdata.py", line 40, in getContext
> OpenGL.error.Error: Attempt to retrieve context when no valid context
>
> where ui/common.py:93 is pyglet.app.run(), ui/common.py:143 is my
> on_draw callback and ui/common.py:81 is glVertexPointerf(points).
>
> pyglet.version reports 1.1.4, OpenGL.__version__ reports 3.0.1b2 and I
> have python 2.6.6
>
> I've no idea where to even start with this, presumably I'm going to
> need more info from the client but I'm not even sure what to ask for.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to