[Pythonmac-SIG] py2app under python 3.2
Michael O'Donnell
micko at wagsoft.com
Sat Jun 9 06:19:39 CEST 2012
Dear all,
Does anyone have py2app working under python 3.2?
(ActivePython or the standard)?
Packaging a simple tkinter app I get:
Traceback (most recent call last):
File "/Users/micko/Desktop/py2AppPy3test/MakeMacBuild.py", line 15, in
<module>
setup_requires=['py2app'])
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/core.py",
line 109, in setup
_setup_distribution = dist = klass(attrs)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/dist.py",
line 221, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/dist.py",
line 245, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pkg_resources.py",
line 576, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pkg_resources.py",
line 822, in best_match
return self.obtain(req, installer) # try and download/install
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/pkg_resources.py",
line 834, in obtain
return installer(requirement)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/dist.py",
line 294, in fetch_build_egg
return cmd.easy_install(req)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py",
line 585, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py",
line 615, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py",
line 805, in install_eggs
return self.build_and_install(setup_script, setup_base)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py",
line 1082, in build_and_install
self.run_setup(setup_script, setup_base, args)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/easy_install.py",
line 1071, in run_setup
run_setup(setup_script, args)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/sandbox.py",
line 31, in run_setup
lambda: exec(compile(open(
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/sandbox.py",
line 73, in run
return func()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/sandbox.py",
line 34, in <lambda>
{'__file__':setup_script, '__name__':'__main__'})
File "setup.py", line 309, in <module>
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/core.py",
line 148, in setup
dist.run_commands()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/dist.py",
line 917, in run_commands
self.run_command(cmd)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/dist.py",
line 936, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/bdist_egg.py",
line 172, in run
self.run_command("egg_info")
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py",
line 313, in run_command
self.distribution.run_command(command)
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/dist.py",
line 936, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/egg_info.py",
line 179, in run
self.find_sources()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/egg_info.py",
line 254, in find_sources
mm.run()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/egg_info.py",
line 310, in run
self.read_template()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/setuptools/command/sdist.py",
line 209, in read_template
sys.exc_info()[2].tb_next.tb_frame.f_locals['template'].close()
File
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/text_file.py",
line 121, in close
self.file.close()
AttributeError: 'NoneType' object has no attribute 'close'
Using: ActivePython 3.2.2.3 (ActiveState Software Inc.) based on
Python 3.2.2 (default, Sep 8 2011, 12:20:30)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Run on Macosx 10.7.4 (Lion)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120609/965968b8/attachment-0001.html>
More information about the Pythonmac-SIG
mailing list