py27-game; installation looks clean, but library not found

Brandon Allbery allbery.b at gmail.com
Fri Mar 2 19:49:10 PST 2012


On Fri, Mar 2, 2012 at 22:41, Lynn Oliver <raycores at gmail.com> 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                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120302/f27e6470/attachment.html>


More information about the macports-users mailing list