Recently I attempted to install Pygame for Python 2.5 on my new computer. The computer runs Windows 10 32-bit, and I have installed a 32 bit copy of Pygame, so there shouldn't be problems there. Whenever I enter my Python shell to attempt to import, this error happens:

>>> import pygame
Traceback (most recent call last):
   File "<pyshell#0>", line 1, in <module>
      import pygame
   File "C:\Python25\DLLs\pygame\__init__.py", line 95, in <module>
      from pygame.base import *
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed      

I went back into the pygame folder to look at init.py and found out the file it was trying to load was an essential pygame file, it just refuses to load. Any ideas?

Why do you need python 2.5. The obvious thing to do is to uninstall 2.5 and install 2.7.

Thanks Gribouillis i tried that and it worked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.