From: Jeff P. <je...@se...> - 2004-07-16 16:21:21
|
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 |