thejode 0 Report post Posted December 7, 2009 This has been a HUGE issue of mine for a long time......Pygame never works on my computer! I've downloaded the pygame installers, installed them, installed python IDLE, the rest of it. Whenever I use the import pygame function, it returns the same error over and over again: Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygameImportError: No module named pygameCan someone please help me out? Thanks Share this post Link to post Share on other sites
rob86 2 Report post Posted December 8, 2009 What version of Python are you using? What OS are you running on? Windows? Linux? Mac? I've always found getting modules to work (on linux) frustrating as well, but the basic idea is you have to get the pygame module into a directory that Python can read (from it's search path), or add python's module directory to a search path. It sounds simple in theory, but to be honest, it never seems to be for me. Python's module files like pygame seem to be thrown randomly around the file system and it's left up to the user to find them. Some installer!Maybe someone more experienced can help more, but for now try reading some of the stuff on this page, https://docs.python.org/2/install/index.html . It might give some insight on how to add directories to the search path. Share this post Link to post Share on other sites
inverse_bloom 0 Report post Posted December 8, 2009 I think i had similar problems once on Ubuntu. I installed Active Python, then repeated the installation procedure but changed the paths to point to the Active Python installation and was successful. Share this post Link to post Share on other sites
mahesh2k 0 Report post Posted December 8, 2009 Which OS are you running ? Windows ? And which version of python you are running ? Also why not check the pygame docs i guess this problem may be reported by someone else already. Let me check it anyway. Share this post Link to post Share on other sites
thejode 0 Report post Posted December 8, 2009 Which OS are you running ? Windows ? And which version of python you are running ? Also why not check the pygame docs i guess this problem may be reported by someone else already. Let me check it anyway. I'm running Python 2.6.4 on Windows 32-bit. I have checked the pygame documents but I couldn't really find much of an answer. Just like @rob86 said, the pygame installer is a piece of garbage. Share this post Link to post Share on other sites
rob86 2 Report post Posted December 8, 2009 Here's a link to a post where someone had the same problem, maybe it will help http://forums.xisto.com/no_longer_exists/ Share this post Link to post Share on other sites