Thursday, March 27, 2014

Activestate Python 2.7 PyGame Horror

Messing with the innards..
Installs pygame from pygame.org using the msi and, stupid thing, installs in my Downloads folder (wt*?). Creates an Include directory with a bunch of .h files and a Lib/site-packages directory.

I hunt and find out where Python2.7 is installed and, that folder also happens to have an Include and a Lib/site-packages.

So, having been unable to import before, I get smart and copy this subfolders - such as pygame and the files pygame-1.9.1-py2.7.egg-info into the master folders.

Then, 

ActivePython 2.7.6.9 (ActiveState Software Inc.) based on
Python 2.7.6 (default, Feb 27 2014, 14:13:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "", line 1, in
  File "C:\Python27\lib\site-packages\pygame\__init__.py", line 95, in     from pygame.base import *
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>>

Luckily, upon searching (finally:) for "getting pygame to work with activestate python 2.7" I get to

No comments: