On Mon, Nov 30, 2009 at 9:57 AM, Esmail <span dir="ltr"><<a href="mailto:ebonak@hotmail.com">ebonak@hotmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello all.<br>
<br>
I am using the PIL 1.1.6 and Python 2.6.x under XP without any<br>
problems. However, I can't display any images under Vista<br>
or Windows 7. I could understand Windows 7 as it's relatively<br>
new, but Vista has been around for a bit.<br>
<br>
Sample code:<br>
<br>
 import Image<br>
<br>
 im = Image.open('c://mypic.jpg')<br>
 im.show()<br></blockquote><div><br></div><div>Totally a guess, but did you try "c:\\mypic.jpg"?</div><div><br></div><div>\ 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)</div>
<div><br></div><div>--S</div></div>