On Tue, Feb 1, 2011 at 4:14 AM, Scott Sumner <[email protected]>wrote:

> Hello all,
>
> I just transitioned to Ubuntu and I'm trying to get Cocos2d running.
> I followed the install directions in the INSTALL file but running any
> of the demos gives me this string of errors.  Can anyone point me in
> the right direction?
>
> Thanks,
> Scott
>
>
> root@bigscreen:~/cocos/cocos2d-0.4.0/samples# python demo_flag3d.py
> failed to create drawable
> Traceback (most recent call last):
>  File "demo_flag3d.py", line 16, in <module>
>    from pyglet.gl import *
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/gl/__init__.py",
> line 510, in <module>
>    import pyglet.window
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/window/
> __init__.py", line 1684, in <module>
>    gl._create_shadow_window()
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/gl/__init__.py",
> line 494, in _create_shadow_window
>    _shadow_window = Window(width=1, height=1, visible=False)
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/window/xlib/
> __init__.py", line 474, in __init__
>    super(XlibWindow, self).__init__(*args, **kwargs)
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/window/
> __init__.py", line 686, in __init__
>    self._create()
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/window/xlib/
> __init__.py", line 683, in _create
>    self.switch_to()
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/window/xlib/
> __init__.py", line 781, in switch_to
>    self._context.set_current()
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/gl/__init__.py",
> line 345, in set_current
>    self._info.set_active_context()
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/gl/gl_info.py",
> line 91, in set_active_context
>    self.vendor = cast(glGetString(GL_VENDOR), c_char_p).value
>  File "/usr/local/lib/python2.6/dist-packages/pyglet/gl/lib.py", line
> 105, in errcheck
>    raise GLException(msg)
> pyglet.gl.lib.GLException: invalid value
>
>
>

Which pyglet version ?
I got the same problem in windows, pyglet from trunk (ie the 1.2dev series).
With pyglet 1.1.4 no problem.
pyglet issue 483
http://code.google.com/p/pyglet/issues/detail?id=483

The samples from pyglet are running ok ?

--
claudio

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en.

Reply via email to