[Pythonmac-SIG] distutils.errors.DistutilsFileError: file '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.pyc' does not exist
Ronald Oussoren
ronaldoussoren at mac.com
Thu Mar 6 10:05:15 CET 2008
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.
>
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20080306/02cb61fb/attachment.bin
More information about the Pythonmac-SIG
mailing list