Is this a prebuilt version or something you built yourself? It might be that the selftest picks a different PYD file than your stand-alone script. Adding "print Image.core" to your test script will tell you what version the script is picking up; compare that to the "loaded from" lines in the test output to see if you're using the same version.
</F> On Sat, Mar 6, 2010 at 7:57 PM, Marc Haberkorn <marc.haberk...@gmail.com> wrote: > Hello all, > > I'm using PIL 1.1.7 on Windows XP. > > You can see in the following code that I am unable to open .jpg files. I AM > able to open .png files, but not .jpg. I've also copied the output of > selftest.py to show that .jpg shows as being setup properly. Can anyone > suggest a next step to resolve this problem? > > Thank you! > > C:\WINDOWS>python > Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. >>>> import Image >>>> i = Image.open('c:\\25.jpg') > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Python25\Lib\site-packages\PIL\Image.py", line 1980, in open > raise IOError("cannot identify image file") > IOError: cannot identify image file >>>> > > C:\temp\PIL\Imaging-1.1.7>python selftest.py > -------------------------------------------------------------------- > PIL 1.1.7 TEST SUMMARY > -------------------------------------------------------------------- > Python modules loaded from .\PIL > Binary modules loaded from c:\python25\lib\site-packages\PIL > -------------------------------------------------------------------- > *** PIL CORE support not installed > *** TKINTER support not installed > --- JPEG support ok > --- ZLIB (PNG/ZIP) support ok > *** FREETYPE2 support not installed > *** LITTLECMS support not installed > -------------------------------------------------------------------- > Running selftest: > --- 57 tests passed. > > > > _______________________________________________ > Image-SIG maillist - image-...@python.org > http://mail.python.org/mailman/listinfo/image-sig > > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig