python cx_freeze error: no commands supplied

Hi I'm a python newbie trying out cx_Freeze and am obviously doing something wrong. The code is as basic as can be. hello.py is in the c:/python27 folder.

I'm using python 2.7 (64 bit) on Windows 7-

the code:

"import sys
from cx_Freeze import setup, Executable

setup(
    name = "Test_Run",
    version = "3.1",
    description = "Hello",
    executables = [Executable("hello.py", base = "Win32GUI")]) "

I'm getting the following when executing the script-

"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"

Where am i slipping up?

Danny
Danny OsborneSenior IT and Technical Specialist, ConsultancyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
Are double quotes intentional?
Can you post the script and mark it as such (check buttons above edit field and use preview)
0
Danny OsborneSenior IT and Technical Specialist, ConsultancyAuthor Commented:
Sorry, code embedded.

Hi I'm a python newbie trying out cx_Freeze and am obviously doing something wrong. The code is as basic as can be. hello.py is in the c:/python27 folder.

I'm using python 2.7 (64 bit) on Windows 7-

the code:

import sys
from cx_Freeze import setup, Executable

setup(
    name = "Test_Run",
    version = "3.1",
    description = "Hello",
    executables = [Executable("hello.py", base = "Win32GUI")]) 

Open in new window


I'm getting the following when executing the script-

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

Open in new window


Where am i slipping up?

Danny
0
gheistCommented:
https://cx-freeze.readthedocs.org/en/latest/distutils.html
You need to tell it to do something according to example. Aka provide command like build_exe.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Danny OsborneSenior IT and Technical Specialist, ConsultancyAuthor Commented:
Apologies for the late reply, that works in part , but there's still more to do.

Will open a new question when I have the time.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Python

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.