Creating a standalone application

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Apr 14 07:31:17 CEST 2010


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




More information about the Python-list mailing list