[Pythonmac-SIG] py2app question

Bob Ippolito bob at redivi.com
Fri Apr 29 23:51:26 CEST 2005


On Apr 29, 2005, at 5:09 PM, Serge Rey wrote:

> On Fri, Apr 29, 2005 at 04:36:15PM -0400, Bob Ippolito wrote:
>
>>
>> On Apr 29, 2005, at 4:33 PM, Serge Rey wrote:
>>
>>
>>> i'm trying to build a tkinter app using py2app and think i'm almost
>>> there but have hit a bit of a bump.
>>>
>>> the app starts but then immediately closes if i start it either  
>>> of the
>>> following two ways:
>>>
>>>    a. clicking on the starsgui.app icon in finder
>>>    b. open starsgui.app  (from a shell)
>>>
>>> however, from a shell if i cd into:
>>>    starsgui.app/Contents/MacOS
>>> and then
>>>    ./starsgui.app
>>>
>>> the built app runs just fine.
>>>
>>>
>>> so my question is, am i neglecting something painfully obvious that
>>> explains why cases a and b don't quite work yet?
>>>
>>> this is all under python 2.4 and py2app 0.1.9
>>>
>>
>> Sounds like you did something really weird.  The executable shouldn't
>> be named starsgui.app?!  You're going to have to post more about what
>> you're doing (i.e. at least your setup.py) before I'd know something
>> definitive.
>>
>
> sorry, the executable is starsgui not starsgui.app
> so the successful start is with ./starsgui
> from within starsgui.app/Contents/MacOs
>
>
> here is setup.py:
>
>     from distutils.core import setup
>     import py2app
>     setup(
>     app=['starsgui.py'],
>     )

Perhaps there's something weird about what your application assumes  
its environment is going to be?  Check /Applications/Utilities/Console

-bob



More information about the Pythonmac-SIG mailing list