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


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

Re: Error when trying to open an image

Started byAbdul Abdul <abdul.sw84@gmail.com>
First post2014-11-17 02:03 +0100
Last post2014-11-19 21:09 +0000
Articles 2 — 2 participants

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Error when trying to open an image Abdul Abdul <abdul.sw84@gmail.com> - 2014-11-17 02:03 +0100
    Re: Error when trying to open an image Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-19 21:09 +0000

#80937 — Re: Error when trying to open an image

FromAbdul Abdul <abdul.sw84@gmail.com>
Date2014-11-17 02:03 +0100
SubjectRe: Error when trying to open an image
Message-ID<mailman.15926.1416186190.18130.python-list@python.org>

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

Thanks for your kind reply. Yes, it seemed it worked with an older version
than 3.x

I got the following output:

Process finished with exit code 0

So, what is the purpose of open() here?

Thanks.

On Mon, Nov 17, 2014 at 12:31 AM, Terry Reedy <tjreedy@udel.edu> wrote:

> On 11/16/2014 2:37 PM, Abdul Abdul wrote:
>
>> 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>
>>
>
> Answer is on line above.  Good for you for posting traceback.
>
>       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?
>>
>
> PIL does not work with 3.x.  Get pillow instead.
>
> --
> Terry Jan Reedy
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

[toc] | [next] | [standalone]


#81043

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2014-11-19 21:09 +0000
Message-ID<m4j0un$vis$2@dont-email.me>
In reply to#80937
On Mon, 17 Nov 2014 02:03:01 +0100, Abdul Abdul wrote:

> Thanks for your kind reply. Yes, it seemed it worked with an older
> version than 3.x
> 
> I got the following output:
> 
> Process finished with exit code 0
> 
> So, what is the purpose of open() here?

*STOP TOP-POSTING! IT@S GETTING ANNOYING NOW!*

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [standalone]


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


csiph-web