Re: [Distutils] distutils.errors.DistutilsFileError: file '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resou rces.pyc' does not exist

At 09:00 AM 3/5/2008 +0100, Luká 'Spike' PolÃvka wrote:
Traceback (most recent call last): File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 683, in create_binaries dry_run=self.dry_run) File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/util.py", line 176, in byte_compile spawn(cmd, verbose=verbose, dry_run=dry_run) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/spawn.py", line 37, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/spawn.py", line 167, in _spawn_posix (cmd[0], exit_status) DistutilsExecError: command '/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python' failed with exit status 1 > /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/spawn.py(167)_spawn_posix()
This error appears to indicate that py2app is having trouble creating a .pyc or .pyo file, due to not being able to run "/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python".

On Wed, Mar 5, 2008 at 2:28 PM, Phillip J. Eby pje@telecommunity.com wrote:
This error appears to indicate that py2app is having trouble creating a .pyc or .pyo file, due to not being able to run "/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python".
It seems to start the interpreter without problem: $ /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information.
Any further suggestions? I'm running Mac OS X 10.5.2. I think I had MacPython (or ActivePython?) 2.5 installed on 10.4.10, before I upgraded to Leopard. I then deleted the non-bundled version by hand.
Thanks, Lukáš 'Spike' Polívka
participants (2)
-
Lukáš 'Spike' Polívka
-
Phillip J. Eby