Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: dictionary changed size during iteration #15

Closed
lynx-r1 opened this issue Oct 23, 2012 · 3 comments
Closed

RuntimeError: dictionary changed size during iteration #15

lynx-r1 opened this issue Oct 23, 2012 · 3 comments

Comments

@lynx-r1
Copy link

lynx-r1 commented Oct 23, 2012

I got this error:

    379         info = TiffImagePlugin.ImageFileDirectory(head)
    380         info.load(file)
--> 381         for key, value in list(info.items()):
    382             exif[key] = fixup(value)
    383         # get exif extension

/home/user/.virtualenvs/myproj/lib/python3.2/_abcoll.py in __iter__(self)
    431 
    432     def **iter**(self):
--> 433         for key in self._mapping:
    434             yield (key, self._mapping[key])
    435 

RuntimeError: dictionary changed size during iteration

When execute this code:
from sorl.thumbnail import get_thumbnail; im = get_thumbnail('/home/user/webapps/myproj/yourpics/media/users/user/images/after rain.jpg', '32x43')

@aclark4life
Copy link
Member

Any idea why?

@lynx-r1
Copy link
Author

lynx-r1 commented Oct 24, 2012

When i commented line 236 del self.tagdata[tag] in file PIL/TiffImagePlugin.py error disappeared.

@aclark4life
Copy link
Member

OK…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants