Red Hat Bugzilla – Bug 896262
Update trac-spamfilter-plugin import of PIL for F19 switch to Pillow
Last modified: 2013-03-08 08:09:32 EST
Created attachment 679886 [details]
Change imports of PIL Library so they'll work with pillow
Description of problem:
Fedora 19 is switching from using python-imaging (PIL) to python-pillow. This is mostly backwards compatible but importing the python-imaging relevant libraries is undergoing a change. In PIL, the libraries could either be imported like this:
or like this:
from PIL import Image
In python-pillow (and thus, Fedora19+), only the latter will work. I've grepped the sources and found a few import statements that need to be updated. Patch attached to fix those. Patch should be upstreamable as PIL supports both the old and new forms of the import.
Version-Release number of selected component (if applicable):
Raised upstream: http://trac.edgewall.org/ticket/11031
I'll update Rawhide in a few days unless upstream has some objections.
Thanks! I'll try to remember to ping this bug when the python-pillow package finishes review. Since it Provides and Obsoletes python-imaging, packages which use the old style of import will stop working when that enters the repository.
The python-pillow package has passed review. It will enter rawhide in a short time. Note that this package will then fail to import PIL unless a version with the updated imports is built.
No response from upstream so I've done a patched build anyway, updating to a new branch for trac 1.0 support.