Hi, Just found out about py2app, and am very excited about using it. Unfortunately, I'm having some problems that I'm not sure how to resolve. Using: OS X 10.4.11 py2app 0.3.6 and also tried the latest from svn Things seem to work in standalone mode. However, when I build for deployment and run the .dmg, it fails and I get the following in the console log: Traceback (most recent call last): File "/Users/pekalmj1/tmp/foo/dist/driver.app/Contents/Resources/__boot__.py", line 137, in <module> _run('driver.py') File "/Users/pekalmj1/tmp/foo/dist/driver.app/Contents/Resources/__boot__.py", line 134, in _run execfile(path, globals(), globals()) File "/Users/pekalmj1/tmp/foo/dist/driver.app/Contents/Resources/driver.py", line 14, in <module> from wx import * File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/py/__init__.py", line 7, in <module> import buffer File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/py/buffer.py", line 7, in <module> from interpreter import Interpreter File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/py/interpreter.py", line 9, in <module> from code import InteractiveInterpreter ImportError: No module named code 2008-04-01 11:30:14.958 driver[1109] driver Error 2008-04-01 11:30:14.959 driver[1109] driver Error An unexpected error has occurred during execution of the main script I'm new to py2app, so I'm unclear (1) why there's a problem importing code (2) why it seems to be grabbing wx libraries from the system folder, rather than from dist. Below is my setup.py, which I modified to include "wx" as a package. When I built for deployment, I just used "python setup.py py2app" as per the tutorial. from setuptools import setup APP = ['driver.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'packages' : ['wx']} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) I'm sure I'm making some kind of simple mistake. Thanks for your help! mike |
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig