Type  "python setup.py py2exe" at the command prompt not the idle prompt and read the documentation.
-----Original Message-----
From: py2exe-users-admin@lists.sourceforge.net [mailto:py2exe-users-admin@lists.sourceforge.net]On Behalf Of Jeff Peery
Sent: Friday, July 16, 2004 12:21 PM
To: py2exe-users@lists.sourceforge.net
Subject: [Py2exe-users] newbie: need help with py2exe, here is what I've done...

Hi, I am having difficulty with py2exe. Here is what I have done: I simply downloaded the executable (py2exe-0.5.0.win32-py2.3.exe) and executed it, wrote the setup script (setup.py), and typed on the IDLE command line:

 

      '>>> python setup.py py2exe'

 

I get this message:

 

      '>>> python setup.py py2exe

      SyntaxError: invalid syntax'

 

If I run the setup.py from IDLE by pressing ‘F5’ I get this message:

 

Traceback (most recent call last):

    File "C:/Documents and Settings/jeffp/My Documents/Python Applications/EX Kalculator/setup.py", line 6, in -toplevel-

    setup(windows = ["wxAppEXKalc.py"], name = "SeaKalc", version = "1.0")

  File "C:\Python23\lib\distutils\core.py", line 137, in setup

    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg

SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

   or: setup.py --help [cmd1 cmd2 ...]

   or: setup.py --help-commands

   or: setup.py cmd --help

 

error: no commands supplied

 

 

This is setup.py:

 

      #setup.py

      from distutils.core import setup

      import py2exe

 

      setup(windows = ["wxAppEXKalc.py"], name = "SeaKalc", version = "1.0")

 

I wrote the applications 'wxAppEXKalc.py' using the boa constructor and wxpython, it has only 1 parent frame and 2 dialogs, it uses Numeric, os, and re.  I read the py2exe documentation although I am still struggling as I am a newbie. Any help would be much appreciated, thanks!!

 

Jeff