[Pythonmac-SIG] py2app and .so files

Ned Deily nad at acm.org
Sun Mar 6 20:41:29 CET 2011


In article 
<AANLkTikwtNQN-S-R3Q7fR29u0RCozECcdnEF2Eq-mdp6 at mail.gmail.com>,
 André Sintzoff <andre.sintzoff at gmail.com> wrote:

> >From source, using make local and make install which copies all files
> in /usr/local/lib/python2.5/site-packages/mercurial/
> 
> After copying 
> dist/TortoiseHg.app/Contents/Resources/lib/python2.5/lib-dynload/mercurial/*
> in 
> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dyn
> load/mercurial
> the application fails a little bit further with:
> ImportError: 
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dy
> nload/PyQt4/QtCore.so'
> not found
> 
> So, the problem is perhaps not specific to mercurial itself.

You should not be copying *anything* into /System/Library/Frameworks.   
That's part of OS X and managed by Apple.   User-installed site packages 
for the system Pythons are not installed there (at least on recent 
versions of OS X), they are installed into /Library/Python.  But for 
your use case (i.e. to make a standalone distributable app), you don't 
want to have anything to do with the system Python.  I'm no longer 
familiar with that old version of Python 2.5 (BTW, there is a newer 
Python 2.5.4 OS X installer still available from python.org here: 
http://www.python.org/download/releases/2.5.4/ ), but the normal place 
for it to be looking for site-packages is:

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pack
ages

-- 
 Ned Deily,
 nad at acm.org



More information about the Pythonmac-SIG mailing list