ascii codec missing under py2exe

Mark Hahn mark at hahnca.com
Fri Sep 12 04:23:30 CEST 2003


I'm using the MIMEText module as part of sending email with no problem until
I put it through py2exe.  Then I get this error:

        LookupError: unknown encoding: ascii

... on this line ...

        File "email\Encoders.pyc", line 85, in encode_7or8bit

... which looks like this ...

        orig.encode('ascii')

My guess is the ascii codec is not getting included in my build.  Can
someone tell me how to fix this?  I know nothing about how these text codecs
work.







More information about the Python-list mailing list