I've been trying to install pygame with the latest Enthought Canopy python distribution (32bit) on OS X Mavericks. This turns out to be very difficult.
I installed pygame with sudo pip install hg+http://bitbucket.org/pygame/pygame
and got no warnings. But when I try to import pygame in python, I get the following errors
Canopy Python 2.7.6 | 32-bit | (default, Jun 4 2014, 16:32:15) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import pygame Traceback (most recent call last): File "", line 1, in File "/Users/Matti/Library/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/pygame/init.py", line 127, in from pygame.base import * ImportError: dlopen(/Users/Matti/Library/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/pygame/base.so, 2): Symbol not found: _SDL_EnableUNICODE Referenced from: /Users/Matti/Library/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/pygame/base.so Expected in: flat namespace in /Users/Matti/Library/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/pygame/base.so
I have also tried installing pygame from the binary package, but that doesn't work. Is there a way to use the binary installer to install pygame "into" the Enthought distribution?
I can install pygame and run it succesfully outside the Enthought Distribution, in another python 2.7 distribution. However I'm unable to install other dependencies for my project in this distribution, so I figured getting pygame into Enthough would be the path of least resistance.
Previous answers on SO haven't helped me.
Thanks for the help.