cx_freeze error : LookupError: no codec search functions registered: can't find encoding

T

Thomas W

I get this error when I try to run a freezed exe on my ubuntu 5.04
running Python 2.4 :

LookupError: no codec search functions registered: can't find encoding

I've tried to use --include-modules encodings,codecs when freezing
without luck.

Any hints?

Regards,
Thomas
 
T

Thomas W

Ok, I'll post my findings here since there are allready several
questions about this topic on the net allready :

The solution was to do an explicit import in my module, like so :

from encodings import ascii
from encodings import idna

This solved the problem, at least in my case.

Regards,
Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top