[Python-apps-team] Bug#708745: [ocrfeeder] Jobs never ends when unpaper is used to preprocess images

Manolo Díaz diaz.manolo at gmail.com
Sat May 18 10:27:05 UTC 2013


Package: ocrfeeder
Version: 0.7.11-2
Severity: normal


Hi,

To reproduce this bug is needed to enable "Preferences/Tools/Unpaper
images".

When run from a x-terminal you can see something like this:

/usr/bin/unpaper --layout single --overwrite  --no-blackfilter   /tmp/ocrfeeder_uhGutd/a.ppm /tmp/ocrfeeder_uhGutd/a.ppm
Processing sheet #1: /tmp/ocrfeeder_uhGutd/a.ppm -> /tmp/ocrfeeder_uhGutd/a.ppm
*** error: input file format using magic '' is unknown.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py", line 499, in __imagePreProcessingFinishedCb
    self.__addImage(image_path, select_image)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py", line 508, in __addImage
    page_data = PageData(image_path)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/dataHolder.py", line 204, in __init__
    image = Image.open(image_path)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1980, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file


Best Regards,
Manolo Díaz


--- System information. ---
Architecture: amd64
Kernel:       Linux 3.9.2

Debian Release: jessie/sid
 1001 testing         ftp.debian.org 

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-==============
python-gtk2                           | 2.24.0-3+b1
python-imaging-sane                   | 1.1.7-4
python-enchant                        | 1.6.5-2
python-gtkspell                       | 2.25.3-12
python-pygoocanvas                    | 0.14.1-1+b3
python-lxml                           | 2.3.5-1
python-reportlab                      | 2.5-1.1
ghostscript                           | 9.05~dfsg-6.3
python                  (>= 2.6.6-7~) | 2.7.3-5
python                       (<< 2.8) | 2.7.3-5
tesseract-ocr                         | 3.02.02-1
 OR ocrad                             | 0.22~rc1-2
 OR gocr                              | 0.49-1
 OR cuneiform                         | 


Recommends      (Version) | Installed
=========================-+-===========
unpaper                   | 0.4.2-1
yelp                      | 


Package's Suggests field is empty.



More information about the Python-apps-team mailing list