[Image-SIG] Freezing with PIL

Fredrik Lundh fredrik at pythonware.com
Tue Oct 3 21:30:04 CEST 2006


> I am trying to freeze a program that uses the Image module under 
> Windows, using visual studio .net 7.1. I'm having a problem that seems 
> to be a failure to find some module/library/.pyd/.lib file(s).
> When I run the resulting executable, it raises an IOError in Image.open, 
> saying "Cannot identify image file." My program sets sys.path, rather 
> than appending to it, so I can distribute all necessary libraries with 
> the executable. This is suggested in the freeze documentation. If I 
> change the code to append to sys.path instead, everything runs fine. So, 
> I assume there is some library or module that it can't find without the 
> standard sys.path, but doesn't complain about not finding. How do I find 
> out what's missing? I didn't find an answer in the freeze or PIL 
> documentation (which doesn't prove it isn't there).

see the "Solution" section on this page for a solution:



More information about the Image-SIG mailing list