1

Is it even possible?

I've been trying for the past 2 days to get pygame working with Python 3 on OSX Lion, after following the free Invent Your Own Computer Games With Python book online. The official pygame website has installation packages for Python 2, but I would rather not downgrade since the book I'm following uses Python 3.

After looking up numerous tutorials online and on StackOverflow, the one that I think got me closest is here: http://www.albrecht.lt/2012/06/python-3-2-with-pygame-under-mac-os-lion-10-7/

I've gotten through the first few steps without much trouble, and gotten Homebrews brew doctor errors down to:

Warning: /Library/Frameworks/Mono.framework detected
This can be picked up by CMake's build system and likely cause the build to
fail. You may need to move this file out of the way to compile CMake.

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

which from what I understand is not a big problem (though I could totally be wrong...)

I initially skipped brew install python3 because I already had Python 3. My first problem is when I enter brew install sdl sdl_image sdl_mixer sdl_ttf portmidi. dl-1.2.15, sdl_image-1.2.12, and sdl_mixer-1.2.12 all installed successfully, but it tells me:

configure: error:
*** Unable to find FreeType2 library (http://www.freetype.org/)

but I figure that is not so lethal. The first big problem I encounter is when I enter brew install --HEAD smpeg, it tells me simply:

Error: No available formula for smpeg

I try to ignore it and move on to /usr/local/share/python3/easy_install pip, but I then get:

-bash: /usr/local/share/python3/easy_install: No such file or directory

And this seems to be the biggest problem, as most of the further instructions will just tell me the same thing, that there is no such file or directory.


After further reading, I followed the accepted answer for this question (How to uninstall Python 2.7 on a Mac OS X 10.6.4?) to delete remnants of Python 2.7 from my system, and then tried brew install python3 just to follow the instructions exactly, but I still run into the same errors.

THOUGH, I did have python 3 already installed when I tried this, so now when I try to "OPEN WITH" a .py file, it shows IDLE.app and IDLE 3.app (though both are 3.2.2). Do I need to completely erase all traces of python completely from my computer before I try to brew install python3? Would that even help, or is the problem in a completely different place?


This has been a pretty extensive question, and I appreciate anyone who reads this far. I'm really not sure how to fix this problem, and I'm getting a little discouraged from reading lots of rants and complaints online about how difficult it is to get pygame working on python 3, especially for OSX Lion. Any help, guidance, or input of any kind is very much appreciated.

Community
  • 1
  • 1
damon
  • 2,687
  • 8
  • 25
  • 35

0 Answers0