Creating a standalone application

Gabriel Genellina gagsl-py2 at
Wed Apr 14 01:31:17 EDT 2010

En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada <l.quesada at>  

> 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/", line 386, in  
> IncludeFile
>      deferredImports)
>    File "/usr/lib/pymodules/python2.6/cx_Freeze/", line 259, in  
> _LoadModule
>      module.code = compile( + "\n", path, "exec")
> TypeError: compile() expected string without null bytes

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

Gabriel Genellina

More information about the Python-list mailing list