<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/16/2014 11:37 AM, Abdul Abdul
wrote:<br>
</div>
<blockquote
cite="mid:CAA+hu4V7V8hW7L79L97Ty6aGbQtb7NEF_iOmLY4CxDzw5suEjA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">Hello,<br>
<div><br>
I'm trying to open an image using the `Python Imaging Library`
as follows:<br>
<br>
from PIL import Image<br>
img = Image.open('xyz.jpg')<br>
<br>
But, got the following error:<br>
<br>
File "C:/Users/abc/PycharmProjects/untitled/open_image.py",
line 2, in <module><br>
from PIL import Image<br>
File "C:\Python34\lib\site-packages\PIL\Image.py", line 62,
in <module><br>
from PIL import _imaging as core<br>
ImportError: DLL load failed: %1 is not a valid Win32
application.<br>
<br>
Why is that? How can I solve this issue?<br>
</div>
</div>
</blockquote>
<br>
... To be clearer, your problem is not with *opening* an image, but
(if you look at the error message) its with importing PIL.<br>
<br>
Gary Herron<br>
</body>
</html>