Jump to content

Py2exe Problems...


P@c_M@n

Recommended Posts

I have installed py2exe on my Windows Vista laptop. I have tried to compile a python file on my desktop with this script:

from distutils.core import setup
import py2exe

setup(console=[r"C:\Users\Brian\Documents\Desktop\number_one.py"])

I run the file and whenever i do, this is the error that comes up:

Traceback (most recent call last):
  File "C:\Users\Brian\Documents\Desktop\setup.py", line 4, in <module>
    setup(console=[r"C:\Users\Brian\Documents\Desktop\number_one.py"])
  File "C:\Python26\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

So can someone help me out here? Is the script wrong or something? I have googled and searched the py2exe website, but I can't find anything.

Edited by Ghost_System
Link to comment
Share on other sites

I did. And i even fixed the build_exe file. I had to dig through sourceforges mailing list, but i eventually got it working. But is the script right? If it is, i can just uninstall and try again.

Running python 2.6 by the way. Forgot that detail up above. >.<

Edited by Ghost_System
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...