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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top