On 6 Mar, 2011, at 20:41, Ned Deily wrote:

> In article 
> <aanlktikwtnqn-s-r3q7fr29u0rcozeccdnef2eq-m...@mail.gmail.com>,
> André Sintzoff <andre.sintz...@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
> 

He's just helping out in debugging why his py2app-ed application bundle doesn't 
work, and the py2app bootstrap code looks in the system lib-dynload directory 
when it shouldn't.

Why it does so is unclear at the moment, I'll have to reproduce the problem 
(which should be easy enough) and then find a solution.

BTW. Is anyone going to pycon this year? I'll be around until the end of the 
sprints, although I intend to do some sightseeing as well.   There's two things 
I'd like to work on during the sprints: work my way through the open issues in 
python's bugtracker (and get familiar with the new mercurial workflow while I'm 
doing this), and work on improving the test suites for macholib, modulegraph 
and py2app. 

Ronald

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to