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-SIG@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


--
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-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to