Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Question on using cx_freeze

Thread Tools

Question on using cx_freeze

Posts: n/a
Dear Room,
I was trying to build an .exe file for my sample python scripting file
"". I felt using cx_freeze as py2exe was giving some problems
for Python2.6, which I am using.

I gave the following commands:
>>> import sys
>>> from cx_Freeze import setup, Executable
>>> base = None

if sys.platform == "win32":
base = "Win32GUI"

>>> setup(

name = "hello1",
version = "0.1",
description = "Sample hello1 script",
executables = [Executable("", base = base)])

I am getting the following error messages:
Traceback (most recent call last):
File "<pyshell#27>", line 5, in <module>
executables = [Executable("", base = base)])
File "D:\Python26\lib\site-packages\cx_Freeze\", line 360, in
File "D:\Python26\lib\distutils\", line 140, in setup
raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" %
SystemExit: usage: [global_opts] cmd1 [cmd1_opts] [cmd2
[cmd2_opts] ...]
or: --help [cmd1 cmd2 ...]
or: --help-commands
or: cmd --help

error: no commands supplied

My questions are:
(i) What is the problem I am doing?
(ii) How to overcome this error?

I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.
1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information on
Windows XP (SP 2).

If any one can help me out I may be hugely helpful.
Thanks in Advance,
Best Regards,
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using cx_freeze on linux james27 Python 2 10-17-2009 12:59 PM
cx_freeze error : LookupError: no codec search functions registered: can't find encoding Thomas W Python 1 06-09-2005 10:02 PM
RE: cx_freeze error : LookupError: no codec search functions Ivan Shevanski Python 0 06-09-2005 05:22 PM
cx_freeze error Python 5 01-30-2005 04:12 AM
$LD_LIBRARY_PATH, cx_Freeze and wxPython Simon John Python 2 09-19-2004 07:31 AM