On 27 Mar, 2008, at 9:01, Lukáš 'Spike' Polívka wrote:
On Sun, Mar 9, 2008 at 2:48 AM, Nathan <[EMAIL PROTECTED]> wrote:On Fri, Mar 7, 2008 at 10:03 PM, Lukáš 'Spike' Polívka<[EMAIL PROTECTED]> wrote:No luck, for some reason. What path do you suggest I should put there,if QtCore.so is placed in Jabbim.app/Contents/Resources/lib/python2.5/lib-dynload/PyQt4/? This is error log from Console:ImportError: '/System/Library/Frameworks/Python.framework/Versions/ 2.5/lib/python2.5/lib-dynload/PyQt4/QtCore.so'not foundHmm. My missing stuff was pure python packages. I don't know if shared libraries are treated the same or not. If that were a python package, I would do sys.path.insert(0,'../Resources/lib/python2.5/lib-dynload/') ~ NathanSo, in the end, Nathan was right. The following helped me:sys.path.insert(0, '../Resources/lib/python2.5/site-packages.zip') # for Twisted sys.path.insert(0, '../Resources/lib/python2.5/lib-dynload') # for PyQt4
That might help you, but leaves the bug in py2app. Phrased differently: this is a nice short-term hack, but it would be better py2app were changed to not require this hack. I'd really appreciate is some else could have a look at this, otherwise the issue will stay around until I get around fixing it which might take a while (especially because the bug for some reason doesn't affect me).
The first path is for my Twisted. The corresponding bundle-relative path already was in sys.path, but after system-wide path. The second path is for my PyQt4. No bundle-relative path was in sys.path before, only system-wide (and wrong).
The system-wide path should be there in the first place, maybe unless you run an alias bundle.
Putting this to the main py (jabbim.py) seems like a mess to me, though.Now… my next problem is that apparently Qt4 is bundled without libjpeg. I have installed Trolls' official qt dmg (no compiling on my part). Outside of the bundle, Jabbim works OK, but when run from the bundle, JPEGs don't work. Any remedy on that?As a side note, setuptools==dev breaks py2app==dev, if anybody cares to know.
I care. Could you elaborate, or even better provide a patch ;-)
Thank you guys, you have been 'quite'* helpful so far! :)
Lukáš * read 'very much' -- 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig