P@c_M@n Posted July 30, 2010 Share Posted July 30, 2010 (edited) 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 July 30, 2010 by Ghost_System Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 30, 2010 Share Posted July 30, 2010 Did you install the correct version of py2exe for your version of python? i.e. py2exe for 2.6 Quote Link to comment Share on other sites More sharing options...
P@c_M@n Posted July 30, 2010 Author Share Posted July 30, 2010 (edited) 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 July 30, 2010 by Ghost_System Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.