py2exe problems

Thomas Heller theller at python.net
Thu Aug 7 16:18:46 EDT 2003


>>>   File "<string>", line 170, in ?
>>>   File "imputil.pyc", line 132, in _import_hook
>>>   File "<string>", line 70, in _finish_import
>>>   File "imputil.pyc", line 316, in _load_tail
>>>   File "imputil.pyc", line 271, in _import_one
>>>   File "<string>", line 128, in _process_result
>>>   File "xml\dom\ext\reader\__init__.pyc", line 20, in ?
>>>   LookupError: no codec search functions registered: can't find encoding
>>>
>>>
>>> python 2.2.3
>>> pyxml 0.8.3
>>

> Ok, I've installed 2.2.3 and verified the behaviour you observed.
> And I have a workaround:
>
> run the setup script with these options, and the test_c14n.py script
> works as executable:
>
> python py2exe --packages encodings --force-imports encodings
>

This trick even helps with Python 2.3. I've added a comment to the web
page.

Thomas




More information about the Python-list mailing list