py2exe erro message???

Gerhard Häring gerhard.haering at gmx.de
Wed Jun 26 16:11:36 EDT 2002


* jubafre at zipmail.com.br <jubafre at zipmail.com.br> [2002-06-26 16:41 -0300]:
> C:\Python22\Lib\SITE-P~1\py2exe>c:\python22\python setup.py py2exe
> 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: invalid command 'py2exe' (no module named 'distutils.command.py2exe')
> 
> what does mean this error??

Do you actually import py2exe in your setup.py script, like described in
http://py2exe.sourceforge.net/? Else the new command isn't registered.

Btw. what are you doing in the C:\Python22\Lib\SITE-P~1\py2exe
directory? Did you actually put your setup.py in this directory? Don't.
Any other directory outside c:\python22 will do fine.

It's also making ones life easier to put c:\python22 in the path. Dunno
why the Python installer doesn't do this itself. Also, at least on the
Windows' I use, you can start a Python script by just using its name,
without explicitely feeding it to python.exe, like this:

setup.py py2exe

This works because .py, .pyc, .pyo, .pyw are associated with python.exe.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))





More information about the Python-list mailing list