title: PyGame not working in Eclipse using Python3.4
body: <p>I am using Linux Mint 17 (Ubuntu 14.04) and already got pygame 1.9.2 working in Eclipse on my Windows PC. Now I also installed it on this machine, but it doesn't work. Thus there is no apt-get for python3-pygame I downloaded the source from <a href="https://bitbucket.org/pygame/pygame" rel="nofollow noreferrer">https://bitbucket.org/pygame/pygame</a> and built and installed it without getting errors.</p>
  
  <p>When running the following on the command line I receive no error:</p>
  
  <pre><code>import pygame
  pygame.init()
  </code></pre>
  
  <p>If I try the same in an Eclipse PyDev project I get the error: "Undefined variable from import: init".</p>
  
  <p>First I thought that my Interpreter was not set up correctly, but the path where pygame is installed is added to the libraries (/usr/local/lib/python3.4/dist-packages). I realized that for Python2.7 pygame is installed in /usr/lib/pytho2.7/dist-packages instead, but this directory doesn't exist for python3.4 on my machine.</p>
  
  <p>Since it seems to work on the command-line it must have something to do with the Eclipse or Pydev settings, right?</p>
  
  <p>UPDATE:
  Ok, now things are getting really confusing. I found out that pygame indeed is also working from within eclipse if I run the project, but only giving me these error messages for eg. pygame.init(), pygame.QUIT, pygame.K_ESCAPE, pygame.KEYDOWN. I find it very strange, because pygame.time.Clock() or pygame.display.set_caption() don't give error messages. So I only get undefined variable from import errors (also see here <a href="https://stackoverflow.com/questions/2112715/how-do-i-fix-pydev-undefined-variable-from-import-errors">How do I fix PyDev &quot;Undefined variable from import&quot; errors?</a> ).</p>