By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 1,932 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

Why doesn't py2exe work?

P: 2
I am getting next message trying to create an executable file:
Expand|Select|Wrap|Line Numbers
  1.   File "C:\Python27\lib\distutils\core.py", line 140, in setup
  2.     raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
  3. SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  4.    or: setup.py --help [cmd1 cmd2 ...]
  5.    or: setup.py --help-commands
  6.    or: setup.py cmd --help
  7.  
  8. error: no commands supplied
What do I do wrong?
Jan 27 '11 #1
Share this Question
Share on Google+
2 Replies


Thekid
100+
P: 145
Are you just typing "setup.py"? If so, it's telling you that you need to add command arguments to it. You can type:
setup.py cmd --help
for options.
This line tells you the usage for setup.py:
Expand|Select|Wrap|Line Numbers
  1. usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  2.  
and these give you options for the usage. Notice the last line says "no commands supplied:
Expand|Select|Wrap|Line Numbers
  1. #    or: setup.py --help [cmd1 cmd2 ...]
  2. #    or: setup.py --help-commands
  3. #    or: setup.py cmd --help
  4. #  
  5. # error: no commands supplied
  6.  
Typically setup.py is ran from a command line, and usually just needs:

python setup.py install
Jan 27 '11 #2

P: 2
Thanks for your answer.
The problem however is solved. I was working with the 64bit program. 32bit was needed (its hard to find).
Jan 31 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.