[scribus] Error importing PIL Image module in scrips

José Antonio Rocha joseantoniorocha at gmail.com
Mon Aug 2 12:51:02 CEST 2010


There is an error in Mantiss ("APPLICATION ERROR #11, A necessary field
"Reported where" was empty. Please recheck your inputs.", but no such field
is show), so I send here.

==SO==

Scribus 1.3.8, Ubuntu 10.04.

==Description==

Trying 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 Reproduce==

Try import PIL Image or re modules (regular expressions) on scripter
console:

import Image

or

import re

==causes==

Missing 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")

-- 
nome: "José Antonio Meira da Rocha"  tratamento: "Prof. MS."
googletalk: email: MSN: joseantoniorocha at gmail.com
ICQ: 658222 Skype: "meiradarocha_jor"
veículo: [ http://meiradarocha.jor.br ]
fone: (+55-55) 9651-0686 (Brazil)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20100802/11022f7b/attachment.htm>


More information about the scribus mailing list