[Image-SIG] IOError("cannot identify image file")

Fredrik Lundh fredrik at pythonware.com
Sun Aug 1 13:12:09 CEST 2010


2010/7/14 Steve McFarlin <smcfarlin at ocsnet.net>:

> I can not seem to figure out why I am getting the cannot identify image file error. The image in question is a PNG. This PNG file can be loaded by PIL on another system. The PIL tests passed when installing. Is there something I there a common place to look too for why the image could not be identified.

The most common cause of this problem is that you've ended up with
multiple copies of the library, and your program isn't picking up the
PIL version you just built.  Try doing "import _imaging; print
_imaging.__file__" in your program to see what version it picks up.

</F>

> --------------------------------------------------------------------
> PIL 1.1.7 SETUP SUMMARY
> --------------------------------------------------------------------
> version       1.1.7
> platform      linux2 2.6.5 (r265:79063, Jul 13 2010, 18:43:16)
>              [GCC 4.3.2]
> --------------------------------------------------------------------
> *** TKINTER support not available
> --- JPEG support available
> --- ZLIB (PNG/ZIP) support available
> --- FREETYPE2 support available
> *** LITTLECMS support not available
> --------------------------------------------------------------------
>
> --------------------------------------------------------------------
> PIL 1.1.7 TEST SUMMARY
> --------------------------------------------------------------------
> Python modules loaded from ./PIL
> Binary modules loaded from ./PIL
> --------------------------------------------------------------------
> --- PIL CORE support ok
> *** TKINTER support not installed
> --- JPEG support ok
> --- ZLIB (PNG/ZIP) support ok
> --- FREETYPE2 support ok
> *** LITTLECMS support not installed
> --------------------------------------------------------------------
> Running selftest:
> --- 57 tests passed.
>
>
> Thanks,
> Steve
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>


More information about the Image-SIG mailing list