On Thu, Mar 6, 2008 at 10:05 AM, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > > On 6 Mar, 2008, at 8:59, Lukáš 'Spike' Polívka wrote: > >> > > > > I think we are on the right track with PYTHONPATH. > > > > I have to export > > PYTHONPATH=/Library/Python/2.5/site-packages:/System/Library/ > > Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages > > - even when running Jabbim without py2app (or as aliased bundle). > > The first path is for Twisted, the second one is for PyQt4 (SIP?). > > Don't ask me why it's not installed in "better" locations, where > > PYTHONPATH is not needed… I think I have installed it according to > > docs. > > What OS are you running, and which python executable do you use > ("which python" in a terminal window)? If you're using /usr/bin/python > on OSX 10.5 the interpreter should use these directories automaticly. > A Python.org installation won't.
Yes, I'm running Leopard. sumichan:/ spike411$ which python /usr/bin/python sumichan:/ spike411$ ls -la /usr/bin/python lrwxr-xr-x 1 root wheel 72 Nov 3 20:59 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python > > I guess I did not read documentation thoroughly. I assumed that if I > > use --use-pythonpath option, py2app would somehow take care of > > "everything". > > --use-pythonpath lets the generated application bundle use the value > of PYTHONPATH. If you need that your application bundle is not self- > contained, which is the whole point of py2app. > > > > > > > > Using py2app-0.3.6-py2.5.egg. > > Could you try again using the current development version of py2app > ("easy_install py2app==dev" should do the trick)? Py2app 0.3.6 doesn't > have explicit support for PyQt, which is needed because the generic > dependency scanner cannot detect all dependencies of PyQt applications > (because PyQt does some imports in C code, and the dependency scanner > cannot "see" those). > > Ronald Seems like dev version of py2app got me somewhere. I export my PYTHONPATH (and I don't pass --use-pythonpath to setup.py), the app is built/packaged (it has around 40 megs). But when I run it (from Finder), I get: ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/PyQt4/QtCore.so' not found Is it the problem Nathan described? Thank you! Lukáš -- IM (XMPP/Jabber/Google Talk): [EMAIL PROTECTED] ICQ, AIM, MSN: Never ever! _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig