Re: [Pythonmac-SIG] No module named altgraph-0
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
Re: [Pythonmac-SIG] No module named altgraph-0
Any ideas? On 12 August 2012 16:27, Mark Livingstone livingstonem...@gmail.com wrote: Hi Guys, I'm making progress - I think ;-) I went to Ronald's Bitbucket and installed all the relevant bits and pieces. Finally I made py2app as below, and it seemed that this was successful. However when I tried to make my app as shown further down, I get an error saying I don't have a module named altgraph-0. This is on my Mountain Lion machine. - renaissance-eth1:py2app mlivingstone$ sudo python setup.py install running install running bdist_egg running egg_info writing requirements to py2app.egg-info/requires.txt writing py2app.egg-info/PKG-INFO writing top-level names to py2app.egg-info/top_level.txt writing dependency_links to py2app.egg-info/dependency_links.txt writing entry points to py2app.egg-info/entry_points.txt reading manifest file 'py2app.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'doc/_static' warning: no directories found matching 'doc/_templates' warning: no previously-included files matching '.DS_Store' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution no previously-included directories found matching 'py2app/apptemplate/prebuilt/main*.dSYM' no previously-included directories found matching 'py2app/bundletemplate/prebuilt/main*.dSYM' writing manifest file 'py2app.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.8-x86_64/egg running install_lib running build_py creating build/bdist.macosx-10.8-x86_64/egg creating build/bdist.macosx-10.8-x86_64/egg/py2app copying build/lib/py2app/__init__.py - build/bdist.macosx-10.8-x86_64/egg/py2app creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate copying build/lib/py2app/apptemplate/__init__.py - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib copying build/lib/py2app/apptemplate/lib/__error__.sh - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib copying build/lib/py2app/apptemplate/lib/site.py - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib copying build/lib/py2app/apptemplate/plist_template.py - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-fat - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-fat3 - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-i386 - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-intel - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-ppc - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-ppc64 - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-universal - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-x86_64 - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/setup.py - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/src copying build/lib/py2app/apptemplate/src/main.c - build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/src creating build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/__init__.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/argv_emulation.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/argv_inject.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_aliasapp.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_aliasplugin.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_app.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_plugin.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/chdir_resource.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/disable_linecache.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/emulate_shell_environment.py - build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying