On 10/28/2010 9:21 PM, Zachary Uram wrote:
I'm running python 2.6 with pygame for 2.6 on windows 7, when i try to
import pygame i get an error, i had no problems installing python and
pygame and I can't find a solution on google so I would really
appreciate any help in resolving this. I also tried installing
different versions of python and pygame and had same error.
Here is the error:
Python 2.6 (r26:66721, Oct 2 2008, 11:06:43) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "C:\Python26\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.
exit()
Zach
Looks like you are trying to run a 32 bit version of pygame on a 64 bit
version of Python. That does not work. Either switch to a 32 bit version
of Python or use an unofficial 64 bit build of pygame from
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame>. Also consider
updating to Python version 2.6.6, which contains many bug fixes.
Christoph