I didn't necessarily mean that MacPorts installed those three files, just that they were the only ones I found. Sorry for the confusion.
It appears that you correctly identified the problem: My current Python installation is in System/Library/Frameworks/Python.Frameworks. The alias is, as you suggested, in /user/local/bin/python. MacPorts has installed another copy of Python in /opt/local/Library/Frameworks/Python.Framework. If I execute /opt/local/bin/python2.7 it starts the version installed by MacPorts, and it indeed does find pygame. So how do I proceed from here? Do I have any option other than trying to recreate my current build environment in /opt/local? Thanks, Lynn On Mar 2, 2012, at 7:49 PM, Brandon Allbery wrote: > On Fri, Mar 2, 2012 at 22:41, Lynn Oliver <[email protected]> wrote: > I installed macports, did a selfupdate, and then ran sudo port install > py27-game. Quite a long list of things were installed, but there were no > warnings or errors listed at all. At this point I should be able to import > pygame in python, but it is not recognized. I searched the entire disk for > files named pygame.*, and the only ones I found were in > system/library/frameworks/python.framework/versions/2.7/Extras/python/py2app/recipes/pygame.py > and the equivalent folder for versions 2.6 and 2.5. > > This sounds rather wrong; MacPorts should *never* install stuff under > /System, that path is reserved for Apple-sourced stuff and liable to be > modified by Software Update at any time. The flip side to this is that the > python executable you use also matters; stuff under > /System/Library/Frameworks/Python.framework would only be available in > /usr/bin/python, not /opt/local/bin/python which looks under > /opt/local/Library/Python.framework. > > -- > brandon s allbery [email protected] > wandering unix systems administrator (available) (412) 475-9364 vm/sms >
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
