On 11 Oct, 2010, at 20:02, Sam Nearhood wrote: > I am trying to build a program with py2app ($ python setup.py py2app) using > Mac OS X 10.6.4 and Python 2.7. Right after it finishes bundling the > application, the terminal stops with this output: > > > Traceback (most recent call last): > File > "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/build_app.py", line > 604, in _run > self.run_normal() > File > "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/build_app.py", line > 675, in run_normal > self.create_binaries(py_files, pkgdirs, extensions, loader_files) > File > "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/build_app.py", line > 772, in create_binaries > target, arcname, pkgexts, copyexts, target.script) > File > "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/build_app.py", line > 1215, in build_executable > copy_resource(src, dest, dry_run=self.dry_run) > File "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/util.py", > line 96, in copy_resource > copy_file(source, destination, dry_run=dry_run) > File "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/util.py", > line 101, in copy_file > zf, zp = path_to_zip(source) > File "/Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/util.py", > line 133, in path_to_zip > raise DistutilsFileError(path) > DistutilsFileError: / >> /Users/sam/Desktop/Program/py2app-0.5.2-py2.7.egg/py2app/util.py(133)path_to_zip() > -> raise DistutilsFileError(path) > (Pdb) > > > > I can't seem to find this problem answered elsewhere. Does anybody have any > suggestions?
If I interpret the stacktrace correctly one of the resources/datafiles you're trying to include in the application doesn't exist and py2app craps out in an unhelpful way. To find the path that is causing problems you can give the following two commands on the (Pdb) prompt: (Pdb) up (Pdb) p source BTW. It seems you're lucky in a way, the exeption only occurs with absolute paths (starting with a '/') while non-existing relative paths cause a hanging proces. Ronald > > Thanks, > Sam > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG