cx_Freeze : LookupError: unknown encoding: ascii

Rakesh Kumar rakesh.usenet at
Sun Mar 2 20:56:32 CET 2008

On Mar 1, 3:41 pm, "Martin v. Löwis" <mar... at> wrote:
> > Can somebody point to some clues about options that need to be passed
> > to FreezePython API to get the right executable.
> You need to tell it to include the encodings.ascii module.
> Regards,
> Martin

Thanks Martin.

Adding something like

./freeze --include-modules=encodings.ascii,encodings.utf_8 <source>

fixed the issue.

More information about the Python-list mailing list