берем код из доков:
import pyglet
window = pyglet.window.Window()
Вместо ожидаемого окошка получаем:
failed to create drawable
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/pyglet/__init__.py", line 306, in __getattr__
__import__(import_name)
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/pyglet/window/__init__.py", line 1684, in <module>
gl._create_shadow_window()
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/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-1.1.4-py2.6.egg/pyglet/window/xlib/__init__.py", line 474, in __init__
super(XlibWindow, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/pyglet/window/__init__.py", line 686, in __init__
self._create()
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/pyglet/window/xlib/__init__.py", line 683, in _create
self.switch_to()
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/pyglet/window/xlib/__init__.py", line 781, in switch_to
self._context.set_current()
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/pyglet/gl/__init__.py", line 345, in set_current
self._info.set_active_context()
File "/usr/local/lib/python2.6/dist-packages/pyglet-1.1.4-py2.6.egg/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-1.1.4-py2.6.egg/pyglet/gl/lib.py", line 105, in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: invalid value