Bug 895214 - Update wavextract import of PIL for F19 switch to Pillow
Summary: Update wavextract import of PIL for F19 switch to Pillow
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: wavextract
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PILLOW
TreeView+ depends on / blocked
 
Reported: 2013-01-14 20:51 UTC by Stephen Gallagher
Modified: 2013-01-16 13:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-15 18:15:40 UTC
Type: Bug
Embargoed:


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

Description Stephen Gallagher 2013-01-14 20:51:37 UTC
Created attachment 678426 [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 of wavextract 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):

wavextract-1.0.0-8

Comment 1 Gwyn Ciesla 2013-01-15 16:27:05 UTC
Should this require python-imaging still, or python-pillow?

Comment 2 Gwyn Ciesla 2013-01-15 18:15:40 UTC
Updated, using python-imaging.

Comment 3 Stephen Gallagher 2013-01-16 13:33:32 UTC
Sorry for the late response. Python-imaging is fine, since it's a drop-in replacement.


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