Py2exe executable not loading images

Thomas Heller thomas.heller at ion-tof.com
Thu Oct 17 12:29:36 CEST 2002


anandpillai6 at yahoo.com (Anand) writes:

> Hi Thomas
> 
>  Thanks a lot. It worked. I have similar problems in the module
> os, when using the os.listdir() function. Any ideas about it ?
> 
>  Here is the error report:
> 
>   "LookupError: no codec search functions registered: can't find encoding"
> 
>   I am passing a unicode string to the function os.listdir(dir) which works
> well in normal python interpreter.
> 

You must include the encodings package
Build it with 'python setup.py --packages=encodings'.
Or insert this in your setup.cfg file:

[py2exe]
packages=encodings

HTH,

Thomas



More information about the Python-list mailing list