[Pythonmac-SIG] py2app 0.2, Python 2.4 and wxPython 2.6.1

Kevin Ollivier kevino at theolliviers.com
Thu Sep 15 07:16:10 CEST 2005


Hi all,

When I try to bundle a wxPython application using py2app on Python  
2.4 under Panther, it runs into a 'file exists' error at build_app.py  
line 728, which is an os.symlink call at the bottom of  
copy_python_framework(). (Complete traceback below.) When I switch to  
the system-included Python 2.3 and run py2app with that, everything  
runs fine, even with the os.symlink line in place.

Does anyone know what could be causing this problem? Is there  
something special I need to specify when building against a non- 
system Python?

Any help would be greatly appreciated!

Thanks,

Kevin

Full traceback:
------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/py2app/build_app.py", line 482, in _run
     self.run_normal()
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/py2app/build_app.py", line 540, in  
run_normal
     self.create_binaries(py_files, pkgdirs, extensions, loader_files)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/py2app/build_app.py", line 630, in  
create_binaries
     mm.mm.run_file(runtime)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/macholib/MachOGraph.py", line 55, in  
run_file
     m = self.findNode(pathname)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/macholib/MachOGraph.py", line 48, in  
findNode
     newname = self.locate(name)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/macholib/MachOStandalone.py", line 24,  
in locate
     return self.delegate.locate(newname)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/macholib/MachOStandalone.py", line 59,  
in locate
     res = self.copy_framework(info)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/py2app/build_app.py", line 46, in  
copy_framework
     destfn = self.appbuilder.copy_framework(info, self.dest)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/py2app/build_app.py", line 694, in  
copy_framework
     self.copy_python_framework(info, dst)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/py2app/py2app/build_app.py", line 727, in  
copy_python_framework
     os.symlink(sym, outf)
OSError: [Errno 17] File exists
 > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ 
site-packages/py2app/py2app/build_app.py(727)copy_python_framework()
-> os.symlink(sym, outf)



More information about the Pythonmac-SIG mailing list