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

> Hi Ronald,
> thanks for your prompt email.
> I checked and the Python.framework pointed to by the Info.plist was indeed 
> empty.
> 
> I simply rysnc -av the Python.framework/Versions/2.7 to the appropriate place 
> pointed to by the Info.plist and was able to launch the app on the machine I 
> built it on , i.e 32 bit snow leopard 

I'm glad to hear that helped. Could you sent me the output of py2app, py2app 
should have copied the framework itself and for some reason failed to do so. 
The reason should be in the py2app logging output.

> 
> The only hastle is that the file is huge..around 100 MB..but I am hoping it 
> should work now that I copied over the Python.framework into the 
> Gridzilla.app directory

The framework will stay pretty large, even when py2app copies only the required 
bits. 

Ronald

> 
> I can see that a lot of the frameoword directories like many other python 
> modules etc..are not needed so I should be able to get rid of them
> 
> I will report back once I test it on the Lion and Mountain Lion machines..
> 
> Thanks for your help
> 
> 
> Hari
> 
> 
> 
> On Mon, Feb 18, 2013 at 4:26 PM, Ronald Oussoren <ronaldousso...@mac.com> 
> wrote:
> 
> 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