Hi, Is your app this salstat <http://salstat.sourceforge.net>?
The traceback seems to indicate that the sip recipe (for PyQt support) tries to import 'altgraph-0'. Could you try if the attached patch fixes the issue? BTW. You're running the setup.py as root, that shouldn't be necessary and in general is a security risk. Ronald
py2app_sip.patch
Description: Binary data
On 15 Aug, 2012, at 18:25, Mark Livingstone <livingstonem...@gmail.com> wrote: >> >> >> renaissance-eth1:src mlivingstone$ sudo python >> ../mac-setup/setup_py2app.py py2app >> running py2app >> creating >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app >> creating >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/collect >> creating >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/temp >> creating >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist >> creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/lib-dynload >> creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/Frameworks >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: >> SyntaxWarning: import * only allowed at module level >> def _createMenu(self): >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: >> SyntaxWarning: import * only allowed at module level >> def _createMenu(self): >> *** using recipe: virtualenv *** >> WARNING: PyQt uic module found. >> avoid python3 metaclass syntax errors by adding 'PyQt4.uic' to your >> excludes option. >> Traceback (most recent call last): >> File "../mac-setup/setup_py2app.py", line 61, in <module> >> BuildOSXApp() >> File "../mac-setup/setup_py2app.py", line 54, in BuildOSXApp >> setup_requires = ['py2app'], >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", >> line 152, in setup >> dist.run_commands() >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", >> line 953, in run_commands >> self.run_command(cmd) >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", >> line 972, in run_command >> cmd_obj.run() >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 492, in run >> self._run() >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 655, in _run >> self.run_normal() >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 728, in run_normal >> self.process_recipes(mf, filters, flatpackages, loader_files) >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 619, in process_recipes >> rval = check(self, mf) >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/recipes/sip.py", >> line 90, in check >> mf.import_hook(pkg, m) >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", >> line 688, in import_hook >> q, tail = self.find_head_package(parent, name, level) >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", >> line 771, in find_head_package >> raise ImportError("No module named " + qname) >> ImportError: No module named altgraph-0 >> renaissance-eth1:src mlivingstone$ > _______________________________________________ > 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