ascii codec missing under py2exe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Hahn

    ascii codec missing under py2exe

    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('as cii')

    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.



  • vincent wehren

    #2
    Re: ascii codec missing under py2exe

    "Mark Hahn" <mark@hahnca.co m> schrieb im Newsbeitrag
    news:F6a8b.3439 8$S_.11374@fed1 read01...
    | 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('as cii')
    |
    | 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.

    Maybe this helps:

    (From the py2exe homepage:
    http://starship.python.net/crew/theller/py2exe/)
    ...if your exe-file reports errors like LookupError: no codec search
    functions registered: can't find encoding or LookupError: unknown encoding,
    you should advise py2exe to include this package with the '--packages
    encodings' command line option.

    HTH

    Vincent Wehren



    |
    |


    Comment

    Working...