Thanks Chris Barker for your reply. I got the py2app build to work. Here is what I did
1) I made sure that my pythonpath was not setup . 2) I also explicitly added the #!/usr/bin/python to all my py files. 3) Then I ran the --make-setup by explicitly calling the /usr/loca/bin/py2applet So I used /usr/local/bin/py2applet --make-setup --iconfile="./gzilla_ico_fin.icns" --packages="wx,reportlab,yaml" --prefer-ppc GridZilla.py 4 ) I get the following setup.py (pasted below) . 5) I then ran /usr/bin/python setup.py py2app That got me a *.app which imports the module and behaves correctly. I have not yet tested the app on a PPC machine but I am imagining it will work. Thanks for your help Hari Jayaram **************setup.py ************* """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['GridZilla.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'iconfile': './gzilla_ico_fin.icns', 'packages': 'wx,reportlab,yaml', 'prefer_ppc': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) On Thu, Oct 1, 2009 at 3:09 PM, Christopher Barker <chris.bar...@noaa.gov> wrote: > hari jayaram wrote: >> >> python setup.py py2app -A > > Are you trying to build an "Alias" app? It will reference all your source > code, rather than copying anything. Teh odd thing is that is usually more > reliable, not less! > >> When I try to open the dist file open dist/GridZilla.app >> I get a popup no module found yaml > > do you get the same result if you double click on it? or s that what you > meant? > >> I know the yaml module is present because I see it in site-packages >> and the script GridZilla.py starts up just fine from the shell where >> the py2app was run. >> I can also see the module in the GridZilla.app >> >> >> /Users/hari/gzilla/src/dist/GridZilla.app/Contents/Resources/lib/python2.5/yaml > > I don't think that should be there with an Alias bundle (-A option). YOu may > want to make sure you delete both "build" and "dist", then try running > py2app again. > > To debug: > > 1) make absolutely sure you are running py2app with the same python that you > are running the script directly with. Check #! lines, etc. > > 2) add a "import sys; print sys.path" to your code -- this will tell you > where it is looking. You may need to open the "Console" utility to see the > output. > >> My site-packages: >> hazel:yaml hari$ ls /Library/Python/2.5/site-packages/ > > note: this is the site-packages that is used for user-installed packages for > the Apple system Python2.5 -- is that what you want to use? > > > HTH, > > -Chris > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > chris.bar...@noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - pythonmac-...@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig