i m trying to create windows executable from python program which has GUI . i m using following script
from distutils.core import setup
import py2exesetup(console=['gui.py'])
it gives following error
Warning (from warnings module):File "C:\Python27\lib\distutils\dist.py", line 267warnings.warn(msg)
UserWarning: Unknown distribution option: 'console'Traceback (most recent call last):File "E:\my python\py2exe.py", line 3, in <module>import py2exeFile "E:\my python\py2exe.py", line 5, in <module>setup(console=['ASUP_finalDone1.py'])File "C:\Python27\lib\distutils\core.py", line 140, in setupraise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: py2exe.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]or: py2exe.py --help [cmd1 cmd2 ...]or: py2exe.py --help-commandsor: py2exe.py cmd --helperror: no commands supplied
i can't understand why to need for supplying command as it is GUI based application but it worked fine first time and then it gives above error. please help..........