_getexif() -> RuntimeError: dictionary changed size during iteration

Bug #1116683 reported by Matthew McGowan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-imaging (Ubuntu)
New
Undecided
Unassigned

Bug Description

>>> from PIL import Image
>>> i = Image.open("/home/matthew/Pictures/IMG_0187.JPG")
>>> i._getexif()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/PIL/JpegImagePlugin.py", line 381, in _getexif
    for key, value in info.items():
  File "/usr/lib/python2.7/_abcoll.py", line 369, in items
    return [(key, self[key]) for key in self]
RuntimeError: dictionary changed size during iteration

On my system, the above python code worked until about a week or so ago, now it results in a RuntimeError.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.