On Mon, Nov 30, 2009 at 9:57 AM, Esmail <ebo...@hotmail.com> wrote: > Hello all. > > I am using the PIL 1.1.6 and Python 2.6.x under XP without any > problems. However, I can't display any images under Vista > or Windows 7. I could understand Windows 7 as it's relatively > new, but Vista has been around for a bit. > > Sample code: > > import Image > > im = Image.open('c://mypic.jpg') > im.show() >
Totally a guess, but did you try "c:\\mypic.jpg"? \ is the path separator on windows, not /. A / will work in many situations, but doubling it might cause problems perhaps (especially since you never have to double forward-slashes, unlike back slashes) --S
-- http://mail.python.org/mailman/listinfo/python-list