On 27 Mar, 2008, at 10:09, Lukáš 'Spike' Polívka wrote:
On Thu, Mar 27, 2008 at 9:55 AM, Lukáš 'Spike' Polívka <[EMAIL PROTECTED]> wrote:On Thu, Mar 27, 2008 at 9:45 AM, Lukáš 'Spike' Polívka<[EMAIL PROTECTED]> wrote:On Thu, Mar 27, 2008 at 9:43 AM, Ronald Oussoren <[EMAIL PROTECTED] > wrote:Aha, seems like 'includes': ['sip'], did the trick when I placed it inOn 27 Mar, 2008, at 9:29, Ronald Oussoren wrote:So, in the end, Nathan was right. The following helped me:sys.path.insert(0, '../Resources/lib/python2.5/site- packages.zip')# for Twistedsys.path.insert(0, '../Resources/lib/python2.5/lib-dynload') # forPyQt4That might help you, but leaves the bug in py2app. Phraseddifferently: this is a nice short-term hack, but it would be better py2app were changed to not require this hack. I'd really appreciateis 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).Are you by any change using the '--site-packages' option of py2app? If so, you run into a (mis-)feature of setuptools: the easy_install.pth file in site-packages contains an nasty hack that ensures that easy-installed software is placed as early as possible on sys.path. You could try running without it, --site-packages shouldn't benecessary for a self-contained application bundle. In the longer run it would be nice to change the code that --site-packages injects intothe .app bundle work around this "feature" of setuptools. RonaldYes, you are right. Well, if I don't use --site-packages, my appcomplains SIP is missing… I guess I will have to include it in the appby some other means.my setup.py.I think I got my setup.py wrong because things like --site-packages or--use-pythonpath work "nicely" in alias mode…Seems like I still have to use sys.path.insert(0, '../Resources/lib/python2.5/site-packages.zip') anyway. If I include sip, I can drop --site-packages. But if I drop that sys.path.insert, wrong Twisted library is used anyway.By the way, I have installed Twisted from their dmg (not through easy_install).Sorry I'm spamming this list with my thoughts like this. If you are on IRC or Jabber, we could discuss it there and then post (re)solution here.
Could you post the exact setup you're using again: - Which version of OSX? - Which copy of python (/usr/bin/python, Python.org installer, ...) - How did you install PyQt (and which version)? - How did you install Twisted (and which version)? - The setup.py you're using - Link to the software - Anything else that might be relevant to reproduce the problemI don't have time to look into this right now, but hopefully will have some time this weekend. I'm slowly gearing up for a new release of PyObjC and would like to fix as much issue in py2app &friends as well.
BTW. the (setuptools==dev, py2app==dev) issue seems to trivial, macholib uses a class that turns out to be private to pkg_resources and that class was moved elsewhere.
I'm kind of lost in all of these path issues… :/ No idea about libjpeg issue?
I guess macholib doesn't pick up that dependency for some reason. You could copy the jpeg bit by hand to get going again.
Ronald
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig