Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80895 > unrolled thread

Error when trying to open an image

Started byAbdul Abdul <abdul.sw84@gmail.com>
First post2014-11-16 20:37 +0100
Last post2014-11-16 20:37 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Error when trying to open an image Abdul Abdul <abdul.sw84@gmail.com> - 2014-11-16 20:37 +0100

#80895 — Error when trying to open an image

FromAbdul Abdul <abdul.sw84@gmail.com>
Date2014-11-16 20:37 +0100
SubjectError when trying to open an image
Message-ID<mailman.15894.1416169215.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hello,

I'm trying to open an image using the `Python Imaging Library` as follows:

from PIL import Image
img = Image.open('xyz.jpg')

But, got the following error:

File "C:/Users/abc/PycharmProjects/untitled/open_image.py", line 2, in
<module>
    from PIL import Image
  File "C:\Python34\lib\site-packages\PIL\Image.py", line 62, in <module>
    from PIL import _imaging as core
ImportError: DLL load failed: %1 is not a valid Win32 application.

Why is that? How can I solve this issue?

Thanks.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web