Bug 893781 - Update PySolFC import of PIL for F19 switch to Pillow
Summary: Update PySolFC import of PIL for F19 switch to Pillow
Alias: None
Product: Fedora
Classification: Fedora
Component: PySolFC
Version: 19
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jaromír Cápík
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PILLOW
TreeView+ depends on / blocked
Reported: 2013-01-09 22:15 UTC by Toshio Ernie Kuratomi
Modified: 2016-02-01 01:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-02-18 11:09:12 UTC
Type: Bug

Attachments (Terms of Use)
Change imports of PIL libraries so they'll work with pillow too (949 bytes, patch)
2013-01-09 22:15 UTC, Toshio Ernie Kuratomi
no flags Details | Diff
Change imports of PIL Library so they'll work with pillow (1.33 KB, patch)
2013-01-09 22:46 UTC, Toshio Ernie Kuratomi
no flags Details | Diff

Description Toshio Ernie Kuratomi 2013-01-09 22:15:05 UTC
Created attachment 675886 [details]
Change imports of PIL libraries so they'll work with pillow too

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 of PySolFC 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 Toshio Ernie Kuratomi 2013-01-09 22:16:45 UTC
Feature page for the switch to pillow with the rationale for the switch in case you were interested:


Comment 2 Toshio Ernie Kuratomi 2013-01-09 22:46:52 UTC
Created attachment 675900 [details]
Change imports of PIL Library so they'll work with pillow

New version of the patch.  I misread the logic before and missed a few more imports that need to be switched to the new format.

Comment 3 Toshio Ernie Kuratomi 2013-01-29 17:12:54 UTC
If I don't hear anything back from you, I'll go ahead and use provenpackager powers to apply this patch to the RawHide package next week.  I'll leave sending the patch to upstream up to you, though.

Comment 4 Stewart Adam 2013-01-30 14:57:26 UTC
Sorry for the lack of reply, I'll try to get to this sometime soon but realistically that may be too long from now. Please feel free to go ahead and apply it.

Comment 5 Toshio Ernie Kuratomi 2013-01-31 05:52:39 UTC
Done.  Thanks!  http://koji.fedoraproject.org/koji/taskinfo?taskID=4916524

I'll leave this open so you can remember to push the patch upstream.

Comment 6 Fedora End Of Life 2013-04-03 20:31:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:

Comment 7 Fedora Admin XMLRPC Client 2013-08-05 17:35:20 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora End Of Life 2015-01-09 22:31:37 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2015-02-18 11:09:12 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

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