title: PYGame - ImportError: No module named locals Raspberry Pi
body: <p>I have the following code:</p>
  
  <pre><code> #!/usr/bin/python
   # -*- coding: iso-8859-15 -*-
  
   import pygame, random
   from pygame.locals import *
   pygame.init()
   clock = pygame.time.Clock()
  
   and so on
  </code></pre>
  
  <p>The app all appears OK, but when I compile the code I get the following error:</p>
  
  <pre><code> Traceback (most recent call last):
   File "fish.py", line 4, in &lt;module&gt;
  import pygame, random
   File "/home/pi/pygame/pygame.py", line 2, in &lt;module&gt;
  ImportError: No module named locals
  
  
  ------------------
  (program exited with code: 1)
  Press return to continue
  </code></pre>
  
  <p>Can anyone help? I'm new to Python and Linux.</p>
  
  <p>I've done the following:</p>
  
  <pre><code> pi@raspberrypi:~$ sudo apt-get install python-pygame
   Reading package lists... Done
   Building dependency tree       
   Reading state information... Done
   python-pygame is already the newest version.
   0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
   pi@raspberrypi:~$ 
  </code></pre>