On 18 Feb, 2013, at 20:10, hari jayaram <hari...@gmail.com> wrote:

> Hi I am using py2app version 0.7.3
> With a python.org installed python ( It still installs into the framework 
> location Library/Frameworks/Python.framework/Versions/2.7) , I pip installed 
> py2app .
> 
> 
> My setup script is identical what I used two years back  and is reproduced 
> below
> 
> I can get the build to complete ..but when I try to open the app on the 32 
> bit machine I built it on or on the target machine which is a 64 bit Lion/ 
> Mountain Lion machines  I get an immediate termination with an error saying 
> it could not find the python runtime.
> 
> ..............
> 2/18/13 1:58:29 PM,Feb 18, 2013       GridZilla[19405]        A Python 
> runtime not 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.
> ..............

Could you check if the python framework is included in the application bundle 
("find GridZilla.app -name Python.framework" should print something), and if 
there is a reference to that location in the Info.plist file included in the 
app bundle?

You could also try launching the app from the commandline 
("dist/Gridzilla.app/Contents/MacOS/Gridzilla"), with some luck this prints 
some more information although I don't expect anything more given the early 
stage at which the launch fails.

> 
> I had gotten the build to complete using a previous version of py2app two 
> years back. The code has changed ever so slightly --mostly in pure python 
> modules.
> 
> Please can someone give me pointers as to why the standalone python is not 
> found by the app,

The setup.py file should work, I don't know yet why it doesn't work for you.  
The failure almost certainly not related to any of your code changes, the 
"crash" happens before the application gets around launching your code.

Ronald

> 
> Thanks a tonne
> Hari
> 
> 
> The setup file I am using is
> 
> """
> 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',
> 'semi_standalone':'False',
>  'includes': 'wx,reportlab,yaml',
> 'packages':('wx','reportlab','yaml'),
> 'site_packages': True}
> 
> setup(
>     app=APP,
>     data_files=DATA_FILES,
>     options={'py2app': OPTIONS},
>     setup_requires=['py2app'],
> )
> 
> 
> 
> 
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to