[Bug 1116683] [NEW] _getexif() -> RuntimeError: dictionary changed size during iteration

Matthew McGowan matthew.joseph.mcgowan at gmail.com
Tue Feb 5 21:37:29 UTC 2013


Public bug reported:

>>> 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.

** Affects: python-imaging (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-imaging in Ubuntu.
https://bugs.launchpad.net/bugs/1116683

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

Status in “python-imaging” package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/1116683/+subscriptions




More information about the foundations-bugs mailing list