View Issue Details

IDProjectCategoryView StatusLast Update
0011404Scribus-public2013-02-01 07:50
Reportersharkcz Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.4.2 
Fixed in Version1.4.3.svn 
Summary0011404: update the use of PIL to support Pillow
Descriptionfrom https://bugzilla.redhat.com/show_bug.cgi?id=896301

Fedora 19 is going to stop shipping python-imaging (PIL) and start shipping python-pillow instead. Rationale can be found on the feature page: https://fedoraproject.org/wiki/Features/Pillow . pillow should be compatible with PIL at the code level but the import statement changes slightly.

PIL supports both of these:

import Image

from PIL import Image

Pillow only supports the latter form.
TagsNo tags attached.
Patch

Activities

sharkcz

2013-01-30 09:14

reporter  

scribus-pillow.patch (770 bytes)   
Index: scribus-1.4.2/scribus/plugins/scriptplugin/scripts/FontSample.py
===================================================================
--- scribus-1.4.2.orig/scribus/plugins/scriptplugin/scripts/FontSample.py
+++ scribus-1.4.2/scribus/plugins/scriptplugin/scripts/FontSample.py
@@ -154,7 +154,7 @@ if not os.path.exists(CONFIG_PATH):
 
 
 try:
-    import Image
+    from PIL import Image
 except ImportError,err:
     print 'You need to install Python Imaging Library (PIL).'
     print 'If using gentoo then you need to emerge /dev-python/imaging'
@@ -164,7 +164,7 @@ except ImportError,err:
 
 
 try:
-    import ImageTk
+    from PIL import ImageTk
 except ImportError,err:
     print 'Module ImageTk not found, font preview disabled'
     showPreviewPanel = 0
scribus-pillow.patch (770 bytes)   

jghali

2013-01-30 12:34

administrator   ~0029772

Patch committed! Thanks!

Issue History

Date Modified Username Field Change
2013-01-30 09:14 sharkcz New Issue
2013-01-30 09:14 sharkcz File Added: scribus-pillow.patch
2013-01-30 12:34 jghali Note Added: 0029772
2013-01-30 12:34 jghali Status new => resolved
2013-01-30 12:34 jghali Fixed in Version => 1.4.3.svn
2013-01-30 12:34 jghali Resolution open => fixed
2013-01-30 12:34 jghali Assigned To => jghali
2013-02-01 07:50 christoph_s Status resolved => closed