En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada <l.ques...@4c.ucc.ie> escribió:

I am getting an "expected string without null bytes" error when using cxfreeze for creating a standalone application (in Linux-Ubuntu). None of my files has null bytes.

Are you sure? A text file saved as, e.g., UTF-16, does contain null bytes.

cxfreeze's output
...
File "/usr/lib/pymodules/python2.6/cx_Freeze/finder.py", line 386, in IncludeFile
     deferredImports)
File "/usr/lib/pymodules/python2.6/cx_Freeze/finder.py", line 259, in _LoadModule
     module.code = compile(fp.read() + "\n", path, "exec")
TypeError: compile() expected string without null bytes

I would add a few 'print' statements in finder.py to determine which file is failing.

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to