title: pyglet NoSuchConfigException error
body: <p>I am trying to get started with <code>pyglet</code> with a <code>Hello World</code> example posted on their site. Even the simplest lines code result in an error:</p>
  
  <pre><code>import pyglet
  
  window = pyglet.window.Window()
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/site-packages/pyglet/__init__.py", line 306, in __getattr__
      __import__(import_name)
    File "/usr/local/lib/python2.7/site-packages/pyglet/window/__init__.py", line 1684, in &lt;module&gt;
      gl._create_shadow_window()
    File "/usr/local/lib/python2.7/site-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.7/site-packages/pyglet/window/xlib/__init__.py", line 474, in __init__
      super(XlibWindow, self).__init__(*args, **kwargs)
    File "/usr/local/lib/python2.7/site-packages/pyglet/window/__init__.py", line 641, in __init__
      raise NoSuchConfigException('No standard config is available.')
  pyglet.window.NoSuchConfigException: No standard config is available.
  </code></pre>
  
  <p>I use <code>Python 2.7.8</code> and <code>Pyglet 1.1.4</code> on <code>Ubuntu 12.04</code>. I have an nVidia geforce gt 540m card, driver version <code>304.116</code>.</p>
  
  <p>Edit: I tried the same thing on <code>Windows 7</code> (on the same machine) and got a different error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "C:\Python27\lib\site-packages\pyglet\__init__.py", line 306, in __getatt
  r__
      __import__(import_name)
    File "C:\Python27\lib\site-packages\pyglet\window\__init__.py", line 1684, in
  &lt;module&gt;
      gl._create_shadow_window()
    File "C:\Python27\lib\site-packages\pyglet\gl\__init__.py", line 494, in _crea
  te_shadow_window
          _shadow_window = Window(width=1, height=1, visible=False)
        File "C:\Python27\lib\site-packages\pyglet\window\win32\__init__.py", line 423
  , in __init__
      super(Win32Window, self).__init__(*args, **kwargs)
    File "C:\Python27\lib\site-packages\pyglet\window\__init__.py", line 686, in _
  _init__
      self._create()
    File "C:\Python27\lib\site-packages\pyglet\window\win32\__init__.py", line 467
  , in _create
      _user32.RegisterClassW(byref(self._window_class))
  WindowsError: exception: access violation reading 0xFFFFFFFFFFFFFFFF
  </code></pre>
  
  <p>The <code>Python</code>and <code>Pyglet</code> versions are the same, and the nVidia driver is <code>337.88</code>.</p>