[Tutor] please help
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Tue Apr 1 12:46:09 2003
On Mon, 31 Mar 2003 GREENDAY31087@aol.com wrote:
> Concerning py2exe: I think I'm doing this right but it still wont work
> for me. I have the setup file and the script file. here they are:
>
> # setup.py
> from distutils.core import setup
> import py2exe
>
> setup(name="test",
> scripts=["test.py"],
> )
>
>
> #test.py
> print "THIS IS A TEST"
>
> And When I start the setup program, it says:
> usage: test.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> or: test.py --help [cmd1 cmd2 ...]
> or: test.py --help-commands
> or: test.py cmd --help
> error: no commands supplied
Hello!
Hmmm... One important thing you need to mention is how you're starting up
the setup program. According to:
http://py2exe.sourceforge.net/
your command should look something like:
python setup.py py2exe
That third part --- 'py2exe' --- is important. You may have just typed
the first two parts:
python setup.py
because I can duplicate a similar kind of error message if I leave it off:
###
[dyoo@tesuque dyoo]$ python setup.py
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
###
... But if we take a close look at your error message, it's mentioning
'test.py' rather than 'setup.py'! Can you make sure you haven't
interchanged the files accidently? 'setup.py' itself should be the only
file to contain that distutils import and that call to setup().
> Am I missing something that's completely obvious? I apologize for being
> kinda thick but I'm trying to get it to work. Thanks
py2exe is a bit specialized, but I think there are enough folks here that
have fiddled with it. Please feel free to ask questions about it, and
we'll do what we can to help make it less aggrevating.
Good luck!