Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61107
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <tastyminerals@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'attribute': 0.07; 'tkinter': 0.07; '__init__': 0.09; 'pavel': 0.09; 'pil': 0.09; 'windows': 0.15; 'effect.': 0.16; 'png': 0.16; 'subject:PIL': 0.16; 'subject:fails': 0.16; 'subject:image': 0.16; 'fix': 0.17; 'code.': 0.18; 'library': 0.18; 'trying': 0.19; 'load': 0.23; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; '>>>': 0.24; 'skip:i 40': 0.24; 'fine': 0.24; 'file.': 0.24; 'skip:" 30': 0.26; 'installed': 0.27; 'subject:) ': 0.29; 'getting': 0.31; "skip:' 10": 0.31; 'file': 0.32; 'linux': 0.33; 'running': 0.33; 'could': 0.34; 'subject:with': 0.35; 'display': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'skip:" 50': 0.36; 'hi,': 0.36; 'button': 0.38; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'here': 0.66 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=bBoyFrf6xZpkxpp96P/O9sf6iXm5pR0F2foCsytsplA=; b=MxTgA0tOiZ30oTLQzYlixRqW9OIccX5qpCPQca9II51DMGoGk5txMcys7NdfjrmO1r TlRFZwLS9RbOGfRPQ+BbV9v0DiOg0pN5pHoQ07XSdi5yevCT/QkITBN7YqG3ph5wGBGR LCL9+tSTq37fqlkgZLSGcM+4KE+6MLPQTGjr69eX9rCtjLBvj9552ucorJqv7ErfShP9 E2rLD8iox8tbw9xI0l1pSJ+vsWsPhkGt14EZEpzMQV+cvEvr61Hgc/Lpph2MaVpi/Etn BS9vKyxC6om+zVhqbInSQAq1eXOn6TznVZUiXBFDbLQqYQL3S3UV522B2wcenV/ET27h YqWQ== |
| X-Received | by 10.15.95.72 with SMTP id bc48mr18337730eeb.49.1386275174167; Thu, 05 Dec 2013 12:26:14 -0800 (PST) |
| Date | Thu, 05 Dec 2013 23:26:11 +0300 |
| From | tastyminerals <tastyminerals@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | PIL(Pillow) fails with PNG image |
| Content-Type | multipart/alternative; boundary="------------010005020207060905070304" |
| X-Mailman-Approved-At | Fri, 06 Dec 2013 01:38:36 +0100 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3618.1386290317.18130.python-list@python.org> (permalink) |
| Lines | 65 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1386290317 news.xs4all.nl 2914 [2001:888:2000:d::a6]:44286 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:61107 |
Show key headers only | View raw
[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