Standalone and plist issues: I am trying to build a standalone wxpython application I am using python 2.6.3 and py2app 0.4.3 Here is what I have tried
1)hari$ type python python is hashed (/Library/Frameworks/Python.framework/Versions/2.6/bin/python) 2) When I run: /Library/Frameworks/Python.framework/Versions/2.6/bin/python dhcp-129-64-45-53:src hari$ /Library/Frameworks/Python.framework/Versions/2.6/bin/python Python 2.6.3 (r263:75184, Oct 2 2009, 07:56:03) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. 3) I forced the non standalone build with semi_standalone:False in the setup.py. I now get a standalone build with python in the following location /GridZilla.app/Contents/MacOS/python 4) trying to run the app I get a Plist error : A Python runtime could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file. 5) If I look at the plist value it is set to: @executable_path/../Frameworks/Python.framework/Versions/2.6/Python This location does not exist : What Should I set it to to get the app to work? 6) I tried setting it to ../MacOS/python and the app failed to launch with the message: dhcp-129-64-45-53:dist hari$ open GridZilla.app LSOpenFromURLSpec() failed with error -10810 for the file /Users/hari/gzilla/src/dist/GridZilla.app. SO I guess I can force standalone builds with -s option . But now the Info.plist does not have the correct value. How can I get the correct value Thanks a lot in advance hari On Thu, Oct 8, 2009 at 12:38 PM, Christopher Barker <chris.bar...@noaa.gov> wrote: > hari jayaram wrote: >> >> Just tried a "hello world " app to troubleshoot py2app as Chris Barker >> suggested. >> >> When I say >> open sayhello.app >> >> Nothing happens. No additional console opens . IS this the normal >> behavior. > > yes -- app bundles re-direct stdout to the console, but don't open it for > you. Try opening the console yourself: > > /Applications/Utilities/Console.app > > clear it, then run your app bundle -- you should see the output. > > -Chris > > >> Here is my hello world style app and its setup.py ( see below) >> Should the app created with py2app automatically open a console? >> Even if I click on the *.app icon..nothing happens. >> >> Hari >> >> ############### >> printto100.py >> ############### >> def main(): >> print "Hello, world!" >> for i in range(100): >> print i >> if __name__ == "__main__": >> main() >> >> ############# >> setup.py >> ############# >> """ >> This is a setup.py script generated by py2applet >> >> Usage: >> python setup.py py2app >> """ >> >> from setuptools import setup >> >> APP = ['printo100.py'] >> DATA_FILES = [] >> OPTIONS = {'argv_emulation': True, 'iconfile': './gzilla_ico_fin.icns'} >> >> setup( >> app=APP, >> data_files=DATA_FILES, >> options={'py2app': OPTIONS}, >> setup_requires=['py2app'], >> ) >> >> >> >> On Wed, Oct 7, 2009 at 7:28 PM, Christopher Barker >> <chris.bar...@noaa.gov> wrote: >>> >>> hari jayaram wrote: >>>> >>>> Thanks Chris for your emails.. >>> >>> one more thought -- this is looking like it may have nothing to do with >>> wxPython -- try a simple "hello world" script, and see what happens. >>> >>> >>> -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-...@python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig > > > -- > 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