Effbot's SimpleXMLWriter fails when py2exe'd

Fredrik Lundh fredrik at pythonware.com
Tue Feb 8 11:46:18 EST 2005


Erik Bethke wrote:

> So I have been using Effbot's XML stuff a lot!  And I have been using
> py2exe, pygame and wxPython all mixed together...
>
> I am getting this strange error log when writing XML files with his XML
> writer.  It appears to be fouling up on the encoding, ONLY in the exe
> version.  Runs fine and great as a python script.

you need to explicitly tell py2exe to include the relevant encodings
(from the encodings package in the standard library).  adding a simple

    import encodings.utf_8

to your script might help.  if not, see the following wiki page:

    http://starship.python.net/crew/theller/moin.cgi/EncodingsAgain

</F> 






More information about the Python-list mailing list