Add support for Pillow (fork of PIL)

Bug #1121474 reported by Vincent Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Low
Vincent Cheng

Bug Description

Debian/Ubuntu's "python-imaging" package is switching over from the old PIL to a PIL-friendly fork (Pillow), which doesn't provide top-level modules. AFAICS the only thing in Exaile that uses PIL is the contextinfo plugin, so here's a patch to fix that.

Some background info can be found on debian-devel (https://lists.debian.org/debian-devel/2013/02/msg00176.html) and LP: #1112496 (https://bugs.launchpad.net/bugs/1112496).

--- a/plugins/contextinfo/__init__.py
+++ b/plugins/contextinfo/__init__.py
@@ -8,7 +8,10 @@
 from xlgui.widgets.common import DragTreeView
 import HTMLParser
 from StringIO import StringIO
-import Image
+try:
+ from PIL import Image
+except ImportError:
+ import Image
 import base64
 import glib
 import gobject

Related branches

Revision history for this message
Mathias Brodala (mathbr) wrote :

Thanks, commited with r4357 in trunk and r4319 in 3.3.x.

Changed in exaile:
assignee: nobody → Vincent Cheng (vincent-c)
importance: Undecided → Low
milestone: none → 3.3.2
status: New → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.