-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have been unable to build the "hello-tk" demo that ships with py2app if I am building against a "universal" build of Tcl/Tk.
Here is my setup: from distutils.core import setup import py2app setup( app=['hello.py'], options=dict( py2app=dict( archs="ppc,i386", frameworks=["/Library/Frameworks/Tcl.framework","/Library/Frameworks/Tk.framework"] ) ) ) Running "sudo python setup.py py2app" returns this error: Graphing /Developer/Python/py2app/Examples/Tkinter/hello_tk/dist/hello.app/Contents/Frameworks/Python.framework/Versions/2.4/Python (ppc) Graphing /Developer/Python/py2app/Examples/Tkinter/hello_tk/dist/hello.app/Contents/Frameworks/Python.framework/Versions/2.4/bin/python (ppc) Graphing /Developer/Python/py2app/Examples/Tkinter/hello_tk/dist/hello.app/Contents/Frameworks/Tcl.framework/Versions/8.4/libtclstub8.4.a (ppc) Traceback (most recent call last): File "setup.py", line 9, in ? frameworks=["/Library/Frameworks/Tcl.framework","/Library/Frameworks/Tk.framework"] File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py", line 966, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 389, in run self._run() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 510, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 570, 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 672, in create_binaries platfiles = mm.run() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachOStandalone.py", line 101, in run mm.run_file(fn) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachOGraph.py", line 67, in run_file m = MachO(pathname) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 254, in __init__ self.load() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 287, in load self.archs = self.load_fat(fat, fh) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 273, in load_fat raise ValueError, "got unrecognized magic of %08x" % (header.magic, MH_MAGIC, MH_CIGAM) TypeError: not all arguments converted during string formatting I have the universal build of Python 2.4.3 installed, and am using py2app 0.2.5 from the pythonmac.org/packages site. My build of TkAqua is version 8.4.12, built as a universal binary, running on 10.4.7 with Xcode 2.3. py2app seems to be choking on the Tcl/Tk stubs library; that's when it returns the "got unrecognized magic" error message. I have no idea how to fix this. - -- Kevin Walzer Poetic Code http://www.kevin-walzer.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFErZd4rTC5hIgjqTMRAnMVAJ9sJE1c2NJCQ40+Fwm1kL6ZgeAHEgCgipXf yYNtYlrO7xjnLoTzxH1CZEg= =ZjSv -----END PGP SIGNATURE----- _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig