Saturday, 15 June 2013

executable - Python 3.2.2, error(scripts to exe) -



executable - Python 3.2.2, error(scripts to exe) -

hello follow instructions (how can utilize py2exe alter python3.2's code exe) create exe form python scripts(version 3.2.2), study me error:

traceback (most recent phone call last): file "c:\python32\scripts\setup.py", line 7, in <module> executables = [executable("ochranka.py")]) file "c:\python32\lib\site-packages\cx_freeze\dist.py", line 365, in setup distutils.core.setup(**attrs) file "c:\python32\lib\distutils\core.py", line 136, 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

this setup.py file:

from cx_freeze import setup, executable setup( name = "ochranka", version = "1.0", description = "test", executables = [executable("ochranka.py")])

i beginner, not know it.

you have pass command setup.py; in case, build*:

python setup.py build

i bet forgot build part.

*note: i'm not 100% sure build command want (it's been while since used cx_freeze). see the documentation.

python executable

No comments:

Post a Comment