Quantcast

IOError("cannot identify image file")

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

IOError("cannot identify image file")

Steve-38
Hello,

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.

--------------------------------------------------------------------
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  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: IOError("cannot identify image file")

Fredrik Lundh
2010/7/14 Steve McFarlin <[hidden email]>:

> 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  -  [hidden email]
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig
Loading...