[Pythonmac-SIG] distutils.errors.DistutilsFileError: file '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.pyc' does not exist

Lukáš 'Spike' Polívka lukas.polivka at gmail.com
Sat Mar 8 06:03:11 CET 2008


On Fri, Mar 7, 2008 at 5:23 PM, Nathan <nathan.stocks at gmail.com> wrote:
> On Fri, Mar 7, 2008 at 6:22 AM, Lukáš 'Spike' Polívka
>
> <lukas.polivka at gmail.com> wrote:
>
> > On Thu, Mar 6, 2008 at 5:51 PM, Nathan <nathan.stocks at gmail.com> wrote:
>  >  >  I think you ran into the same issue that I experienced:
>  >  >
>  >  >  http://mail.python.org/pipermail/pythonmac-sig/2008-March/019791.html
>  >  >
>  >  >  The same workaround may work for you.
>  >  >
>  >  >  ~ Nathan
>  >  >
>  >
>  >  Where exactly did you put those sys.path.insert statements? site.py?
>  >
>  >  Thanks,
>  >  Lukáš
>
>  Put it at the very top of your main script.  The script that you're
>  turning into an app.  It makes it so that when you double-click on the
>  .app and your script gets called from within the app, the first thing
>  your script does is alter the paths that it searches to import stuff
>  so that instead of having the in-app modules as lowest priority (last
>  in the search path), they're highest priority (first in the search
>  path).
>
>  If it makes any difference, I was using the latest py2app installed
>  with the ez_setup script instructions from the installation section of
>  py2app's online docs.
>
>  ~ Nathan
>

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 found

 PyQt4 is not installed.
 Traceback (most recent call last):
   File "/Users/spike411/jabbim-ng/dist/Jabbim.app/Contents/Resources/__boot__.py",
line 137, in <module>
     _run('jabbim.py')
   File "/Users/spike411/jabbim-ng/dist/Jabbim.app/Contents/Resources/__boot__.py",
line 134, in _run
      execfile(path, globals(), globals())
    File "/Users/spike411/jabbim-ng/dist/Jabbim.app/Contents/Resources/jabbim.py",
line 32, in <module>
      import qt4reactor
    File "qt4reactor.pyo", line 25, in <module>
    File "PyQt4/QtCore.pyo", line 18, in <module>
    File "PyQt4/QtCore.pyo", line 15, in __load
  ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/PyQt4/QtCore.so'
not found

Lukáš

-- 
IM (XMPP/Jabber/Google Talk): spike411 at jabber.cz
ICQ, AIM, MSN: Never ever!


More information about the Pythonmac-SIG mailing list