Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ShrewdPrankster

macrumors newbie
Original poster
Mar 6, 2013
2
0
Canada
Does anyone know how to install pygame for use with python 3? I have tried using these instructions:

http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x

I managed to get everything to work until the pip installation. I did manage to get pip installed (not sure if it installed correctly though) but cannot get pygame to install.

Is there another method or a package already made that is not on the pygame.org site? Any help would be appreciated. Thanks

Update:

I managed to get pygame to install for python 3.3 however, I do get an error when trying to execute some code. The error is a pygame.mixer stating it cannot load the sound file. I tried it in Windows with Parallels and it works perfectly. As far as I can tell all dependencies are installed per the instructions from the link supplied.

- Chris
 
Last edited:

ShrewdPrankster

macrumors newbie
Original poster
Mar 6, 2013
2
0
Canada
self.movesound = pygame.mixer.Sound(os.path.join('sound', 'menumove.ogg'))
pygame.error: Unable to open file 'sound/menumove.ogg'

The only thing I can think of is that I am missing a module for when compiling pygame.

Cut and paste exact error (or post a screenshot)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.