title: pygame.error: No available video device
body: <p>I have this setup:</p>
  
  <pre><code> $ python -V
  Python 2.7.2+
   $ python -c "import pygame; print pygame.__version__"
  1.9.1release
  </code></pre>
  
  <p>When I run a pygame script, I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/santosh/tmp/pygameHelloWorld.py", line 8, in &lt;module&gt;
      windowSurface = pygame.display.set_mode((500, 400), 0, 32)
  pygame.error: No available video device
  </code></pre>
  
  <p>I am using Ubuntu and have install pygame with apt-get. Additionally I have install all dependencies mentioned on this <a href="http://www.pygame.org/wiki/CompileUbuntu" rel="noreferrer">pygame wiki page</a>.</p>