py2exe problems

Thomas Heller theller at python.net
Thu Aug 7 09:33:48 EDT 2003


"Alessandro Crugnola *sephiroth*" <alessandro at sephiroth.it> writes:

> Hi,
> i'm trying to compile a .py script using py2exe into a win .exe file.
> In that script i'm using xml.dom.minidom to parse an xml file (with the iso8859-1 encoding)
>
> i've included in the setup command line the --packages encodings
> but once i launch the exe file i receive this error in the console window:
>
> Traceback (most recent call last):
>   File "<string>", line 51, in Notify
>   File "<string>", line 105, in __init__
>   File "WindowsSnippets.pyc", line 27, in __init__
>   File "WindowsSnippets.pyc", line 135, in loadXML
>   File "xml\dom\minidom.pyc", line 1915, in parse
>   File "xml\dom\expatbuilder.pyc", line 924, in parse
>   File "xml\dom\expatbuilder.pyc", line 207, in parseFile
> LookupError: no codec search functions registered: can't find encoding
>
> how can i solve the issue?

Which Python version are you using? 2.3 doesn't yet work correctly, but
2.2 should be ok.

Thomas




More information about the Python-list mailing list