Hello ~
I'm quite new to Python, and wanted to compile an app, GNS3
(http://www.gns3.net/download) and have everything running from the Python
code. I wanted to make it an executable .app so that I can distribute and make
it available to the GNS3 community (this would put the Mac on par with Windows
and Linux in regards to high-end Cisco networking emulation). I had found
py2app and tried to compile it with that, but bumped into what appears to be a
couple issues. I could not find documentation on how to overcome the issues,
and am not certain if it is that py2app can not compile the Python, or if I'm
missing something. I contact Bob Ippolito who informed me that he no longer
supports py2app.
If there is a compiler better than py2app I'd greatly appreciate the input, or
if someone knows how to get around the issues, assuming there is a way. Here
are the issues that came up during the compile:
File
"/Library/Python/2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/util.py", line
101, in copy_file
zf, zp = path_to_zip(source)
File
"/Library/Python/2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/util.py", line
133, in path_to_zip
raise DistutilsFileError(path)
DistutilsFileError: /private/tmp/GNS3-0.7RC1-src
> /Library/Python/2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/util.py(133)path_to_zip()
-> raise DistutilsFileError(path)
(Pdb) q
Traceback (most recent call last):
File "/usr/local/bin/py2applet", line 8, in <module>
load_entry_point('py2app==0.4.3', 'console_scripts', 'py2applet')()
File
"/Library/Python/2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/script_py2applet.py",
line 134, in main
build(args, scripts, data_files, options)
File
"/Library/Python/2.6/site-packages/py2app-0.4.3-py2.6.egg/py2app/script_py2applet.py",
line 187, in build
target.appdir,
AttributeError: 'Target' object has no attribute 'appdir'
Thanks,
Chaz Hauge
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig