Bug 896262 - Update trac-spamfilter-plugin import of PIL for F19 switch to Pillow
Summary: Update trac-spamfilter-plugin import of PIL for F19 switch to Pillow
Alias: None
Product: Fedora
Classification: Fedora
Component: trac-spamfilter-plugin
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PILLOW
TreeView+ depends on / blocked
Reported: 2013-01-16 22:31 UTC by Stephen Gallagher
Modified: 2013-03-08 13:09 UTC (History)
2 users (show)

Fixed In Version: trac-spamfilter-plugin-0.7.3-0.15.20130228svn11702.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-03-08 13:09:32 UTC
Type: Bug

Attachments (Terms of Use)
Change imports of PIL Library so they'll work with pillow (648 bytes, patch)
2013-01-16 22:31 UTC, Stephen Gallagher
no flags Details | Diff

Description Stephen Gallagher 2013-01-16 22:31:42 UTC
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:

import Image

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):

Comment 1 Paul Howarth 2013-01-29 13:48:24 UTC
Raised upstream: http://trac.edgewall.org/ticket/11031

I'll update Rawhide in a few days unless upstream has some objections.

Comment 2 Toshio Ernie Kuratomi 2013-02-05 01:54:42 UTC
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.

Comment 3 Toshio Ernie Kuratomi 2013-03-06 16:16:03 UTC
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.


Comment 4 Paul Howarth 2013-03-08 13:09:32 UTC
No response from upstream so I've done a patched build anyway, updating to a new branch for trac 1.0 support.

Note You need to log in before you can comment on or make changes to this bug.