Ok, the .app bundles successfully, HOWEVER, at the end of the output I
get:
creating
/Users/danr/Projects/hamilton_py3/dist/gui.app/Contents/Frameworks/Tcl.framework
linking
/Users/danr/Projects/hamilton_py3/dist/gui.app/Contents/Frameworks/Tcl.framework/libtclstub8.5.a
-> Versions/8.5/libtclstub8.5.a
error: No such file or directory:
/Users/danr/Projects/hamilton_py3/dist/gui.app/Contents/Frameworks/Tcl.framework/libtclstub8.5.a
There are also a bunch of folders (html, xml, email, distutils, etc.)
that look like they weren't cleaned up?
Thanks for the hard work Ronald.
On Wed, 16 Mar 2011 10:25:00 -0400, Ronald Oussoren
<ronaldousso...@mac.com> wrote:
On 16 Mar, 2011, at 10:15, Dan Ross wrote:
Hey Ronald-
Thanks for the response. I now get the following error:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.2/bin/py2applet",
line 9, in <module>
load_entry_point('py2app==0.6', 'console_scripts', 'py2applet')()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py",
line 132, in main
make_setup(args, scripts, data_files, options)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py",
line 163, in make_setup
f.write(SETUP_TEMPLATE % tvars)
TypeError: 'str' does not support the buffer interface
Oh cool, another bytes<->unicode issue. I hadn't looked at py2applet
yet...
If you open the script_py2applet.py file (the full location is in the
traceback) look for ' f.write(SETUP_TEMPLATE % tvars)' you'll see a
call to open two lines up. That currently has 'rb' as the last
argument, change that to 'r' and py2applet should magically start to
work again.
I'll commit a fix once I've written a unittest[*] for this.
Ronald
[*] for a particular odd definition of 'unit', the py2app unittests
are currently more integration tests. Fixing that can wait...
Dan
On Tue, 15 Mar 2011 09:10:14 -0400, Ronald Oussoren
<ronaldousso...@mac.com> wrote:
On 14 Mar, 2011, at 18:53, Dan Ross wrote:
Hi all-
I have a very small and simple Tkinter/Python 3.2 app that I'm
trying to bundle with py2app.
I'm currently sprinting at Pycon and will do a new release
afterwards. The current tip of the development repositories should
work though, although they are lightly tested at the moment.
The repositories are:
* https://bitbucket.org/ronaldoussoren/altgraph
* https://bitbucket.org/ronaldoussoren/macholib
* https://bitbucket.org/ronaldoussoren/modulegraph
* https://bitbucket.org/ronaldoussoren/py2app
You'll have to install the packages in this order, there have bee
some API additions and bugfixes that require you to install all of
them.
My focus with the sprints is on CPython bugfixes as well improving
the documentation and test coverage of py2app and supporting
modules
(whereby "improving the test coverage" means that I've started at
no
coverage at all a month or so ago).
Ronald
After updating py2app and it's dependencies to "dev" versions I
still get the following error:
*** creating application bundle: gui ***
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py",
line 604, in _run
self.run_normal()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py",
line 675, in run_normal
self.create_binaries(py_files, pkgdirs, extensions,
loader_files)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py",
line 772, in create_binaries
target, arcname, pkgexts, copyexts, target.script)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py",
line 1253, in build_executable
sys.version[:3])), os.path.join(inc_dir, 'pyconfig.h'))
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py",
line 350, in copy_file
dry_run=self.dry_run)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py",
line 106, in copy_file
"can't copy '%s': doesn't exist or not a regular file" % src)
distutils.errors.DistutilsFileError: can't copy
'/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2/pyconfig.h':
doesn't exist or not a regular file
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py(106)copy_file()
-> "can't copy '%s': doesn't exist or not a regular file" % src)
(Pdb)
From snooping around in
Library/Frameworks/Python.framework/Versions/3.2/include/ in looks
like the python folder is named python3.2m rather than just python.
Does this sound familiar or am I barking up the wrong tree?
Oh. OS 10.6.6 Python 3.2 64bit
Thanks,
Dan
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG