View Issue Details

IDProjectCategoryView StatusLast Update
0009313ScribusScripterpublic2011-10-20 02:35
Reportermeiradarocha Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformUbuntu 10.04OSLinuxOS Version2.6.32-23
Product Version1.3.8 
Summary0009313: Error on importing PIL Image module
DescriptionTrying to import PIL Image modules get error:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 70, in <module>
    import ImagePalette
  File "/usr/lib/python2.6/dist-packages/PIL/ImagePalette.py", line 20, in <module>
    import Image, ImageColor
  File "/usr/lib/python2.6/dist-packages/PIL/ImageColor.py", line 21, in <module>
    import re, string
ImportError: No module named re
Steps To ReproduceTry import PIL Image or re modules (regular expressions) on scripter console:

import Image

or

import re

(as in DirectImageImport.py)
Additional InformationMissing Pyhon main path in sys-path:

import sys
print sys.path # missing '/usr/lib/python2.6'


==Workaround:==

append missing path in scripts:

import sys
sys.path.append("/usr/lib/python2.6")
TagsNo tags attached.
Patch

Activities

meiradarocha

2010-08-04 21:14

reporter   ~0024444

* PIL works fine in Windows XP, PIL 1.1.7.

* Running code in console works fine.

meiradarocha

2010-08-05 23:04

reporter   ~0024445

Last edited: 2010-08-05 23:05

Import Image (PIL) freeze Scribus 1.3.3.14 in Ubuntu 10.08, too.

gpittman

2010-08-06 01:20

developer   ~0024446

This is great to know since I had wondered why my use of PIL in Infobox.py had stopped working.

meiradarocha

2010-12-06 21:56

reporter   ~0024991

The workaround doesn't works anymore, in Ubuntu 10.10

meiradarocha

2011-10-20 02:35

reporter   ~0027060

Last edited: 2011-10-20 02:37

Don't freeze Scribus anymore in Ubuntu 11.04.

Issue History

Date Modified Username Field Change
2010-08-04 21:13 meiradarocha New Issue
2010-08-04 21:14 meiradarocha Note Added: 0024444
2010-08-04 21:33 jghali Severity major => minor
2010-08-05 23:04 meiradarocha Note Added: 0024445
2010-08-05 23:05 meiradarocha Note Edited: 0024445
2010-08-06 01:20 gpittman Note Added: 0024446
2010-12-06 21:56 meiradarocha Note Added: 0024991
2011-10-20 02:35 meiradarocha Note Added: 0027060
2011-10-20 02:36 meiradarocha Note Edited: 0027060
2011-10-20 02:37 meiradarocha Note Edited: 0027060