Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm having an issue with the Pygame module. I run Python 3.2 and installed the respective Pygame file, but now when I try to import it in the IDLE, it gives me this error:

>>> import pygame
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pygame
  File "C:\Python32\lib\site-packages\pygame\__init__.py", line 95, in <module>
    from pygame.base import *
ImportError: DLL load failed: %1 is not a valid Win32 application.

Any help will be appreciated.

share|improve this question
2  
What exactly did you download? Did you use the EXE? If so, are you sure you took the right one, matching your system specifications etc.? –  nathan Nov 3 '12 at 21:24
add comment

1 Answer

According to this question about the same error, the issue is likely that you have a 64-bit version of Python installed, and a 32-bit version of Pygame. I don't think Pygame has any 64-bit versions available, so to fix your problem you will have to download a 32-bit version of Python.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.