Advertisement
maurobaraldi

PIL Load JPEG file error.

Jul 27th, 2012
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/home/mauro/tkinter_image.py", line 21, in <module>
  3.     img = ImageTk.PhotoImage(Image.open(File))
  4.   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageTk.py", line 116, in __init__
  5.     self.paste(image)
  6.   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageTk.py", line 166, in paste
  7.     im.load()
  8.   File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFile.py", line 189, in load
  9.     d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  10.   File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 385, in _getdecoder
  11.     raise IOError("decoder %s not available" % decoder_name)
  12. IOError: decoder jpeg not available
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement