Why doesn't py2exe work?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Simon van der G
    New Member
    • Jan 2011
    • 2

    Why doesn't py2exe work?

    I am getting next message trying to create an executable file:
    Code:
      File "C:\Python27\lib\distutils\core.py", line 140, 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
    What do I do wrong?
  • Thekid
    New Member
    • Feb 2007
    • 145

    #2
    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:
    Code:
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
    and these give you options for the usage. Notice the last line says "no commands supplied:
    Code:
    #    or: setup.py --help [cmd1 cmd2 ...]
    #    or: setup.py --help-commands
    #    or: setup.py cmd --help
    #  
    # error: no commands supplied
    Typically setup.py is ran from a command line, and usually just needs:

    python setup.py install

    Comment

    • Simon van der G
      New Member
      • Jan 2011
      • 2

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

      Comment

      Working...