Hi All,
I have installed the latest version of cx_freeze but when I try to build or
freeze any python script I get the below error
running build
running build_exe
Traceback (most recent call last):
File "setup.py", line 6, in <module>
executables = [Executable("cscli.py")])
File "/usr/lib64/python2.6/site-packages/cx_Freeze/dist.py", line 359, in
setup
distutils.core.setup(**attrs)
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib64/python2.6/distutils/command/build.py", line 134, in run
self.run_command(cmd_name)
File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib64/python2.6/site-packages/cx_Freeze/dist.py", line 231, in
run
freezer.Freeze()
File "/usr/lib64/python2.6/site-packages/cx_Freeze/freezer.py", line 470,
in Freeze
self._FreezeExecutable(executable)
File "/usr/lib64/python2.6/site-packages/cx_Freeze/freezer.py", line 144,
in _FreezeExecutable
scriptModule = finder.IncludeFile(exe.script, exe.moduleName)
File "/usr/lib64/python2.6/site-packages/cx_Freeze/finder.py", line 494,
in IncludeFile
deferredImports)
File "/usr/lib64/python2.6/site-packages/cx_Freeze/finder.py", line 332,
in _LoadModule
module.code = compile(codeString, path, "exec")
TypeError: compile() expected string without null bytes
Can somebody please help me out. I am new to cx_freeze. Its urgent.
Thanks
Pradeep Reddy
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users