Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61107
| Date | 2013-12-05 23:26 +0300 |
|---|---|
| From | tastyminerals <tastyminerals@gmail.com> |
| Subject | PIL(Pillow) fails with PNG image |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3618.1386290317.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hi, I am getting an error when trying to use Pillow library to display
image PNG on a Tkinter Button widget. Here is my code.
|image= Image.open(os.path.join('icons','bulb.png')) # using PIL for png images
self.correctGuessImage= ImageTk.PhotoImage(image)
|>>>
|File "/home/user/Documents/temp.py", line222, in drawButtons
self.correctGuessImage= ImageTk.PhotoImage(image)
File "/usr/lib/python2.7/dist-packages/PIL/ImageTk.py", line121, in __init__
self.paste(image)
File "/usr/lib/python2.7/dist-packages/PIL/ImageTk.py", line171, in paste
im.load()
File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line192, in load
d= Image._getdecoder(self.mode, d, a, self.decoderconfig)
AttributeError: 'module' object has no attribute'_getdecoder'|||
While working fine under windows 7x64 it fails to work on Linux Mint
x64. I am getting this error running the same file. I installed
everything I could find with 'python','png' and 'tk' from the reps but
no effect. Any ideas why is this happening and how to fix this?
Pavel
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
PIL(Pillow) fails with PNG image tastyminerals <tastyminerals@gmail.com> - 2013-12-05 23:26 +0300 Re: PIL(Pillow) fails with PNG image John Gordon <gordon@panix.com> - 2013-12-06 02:07 +0000 Re: PIL(Pillow) fails with PNG image Christian Gollwitzer <auriocus@gmx.de> - 2013-12-06 07:54 +0100
csiph-web