From: Golawala, M. M \(GE Infrastructure\) <Moi...@ge...> - 2004-07-16 17:21:08
|
Type "python setup.py py2exe" at the command prompt not the idle prompt = and read the documentation. Regards,=20 Moiz Golawala=20 Enterprise Solutions=20 GE Infrastructure - Security=20 791 Park Of Commerce Blvd., Boca Raton, FL 33487 *=20 moi...@ge... *=20 561-912-5972 * 561-912-1650 *=20 -----Original Message----- From: py2...@li... = [mailto:py2...@li...]On Behalf Of Jeff Peery Sent: Friday, July 16, 2004 12:21 PM To: py2...@li... 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: =20 '>>> python setup.py py2exe' =20 I get this message: =20 '>>> python setup.py py2exe SyntaxError: invalid syntax' =20 If I run the setup.py from IDLE by pressing 'F5' I get this message: =20 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 =3D ["wxAppEXKalc.py"], name =3D "SeaKalc", version = =3D "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 =20 error: no commands supplied =20 =20 This is setup.py: =20 #setup.py from distutils.core import setup import py2exe =20 setup(windows =3D ["wxAppEXKalc.py"], name =3D "SeaKalc", version = =3D "1.0") =20 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!! =20 Jeff =20 |