After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705610 - ocrfeeder freezes when using unpaper
ocrfeeder freezes when using unpaper
Status: RESOLVED FIXED
Product: ocrfeeder
Classification: Other
Component: general
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: ocrfeeder-maint
ocrfeeder-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-07 11:51 UTC by Alberto Garcia
Modified: 2014-07-07 21:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alberto Garcia 2013-08-07 11:51:07 UTC
The UI freezes ("Preparing image - please wait") if I try to open a
document with the "Unpaper images" option enabled.

$ ocrfeeder --version
ocrfeeder 0.7.11

$ unpaper --version
0.4.2

$ ocrfeeder -i doc.jpg
/usr/bin/unpaper --layout single --overwrite    /tmp/ocrfeeder_PL5sv9/doc.ppm /tmp/ocrfeeder_PL5sv9/doc.ppm
Processing sheet #1: /tmp/ocrfeeder_PL5sv9/doc.ppm -> /tmp/ocrfeeder_PL5sv9/doc.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

Comment 1 rr 2013-12-26 12:21:36 UTC
Same here.
Getting a bunch of with auto unpaper

Try 'man unpaper' for more information.
Traceback (most recent call last):
  • File "/usr/lib/python2.7/site-packages/ocrfeeder/studio/widgetModeler.py", line 499 in __imagePreProcessingFinishedCb
    self.__addImage(image_path, select_image)
  • File "/usr/lib/python2.7/site-packages/ocrfeeder/studio/widgetModeler.py", line 508 in __addImage
    page_data = PageData(image_path)
  • File "/usr/lib/python2.7/site-packages/ocrfeeder/studio/dataHolder.py", line 204 in __init__
    image = Image.open(image_path)
  • File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 2006 in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

with

unpaper: error: input file format using magic '�' is unknown.

unpaper version 5.1, ocrfeeder 0.7.11
Comment 2 Joaquim Rocha 2014-07-05 22:54:06 UTC
Looking into it.
Comment 3 Joaquim Rocha 2014-07-07 21:12:22 UTC
Hi,

I have just fixed this. It seems that Unpaper was forked but Fedora (which I am using) is still using the original one, that's why I had version 0.X and you have a version > 1.

I installed the fork and the problem is that it no longer supports having the same output image name as the input's.

I have filed an issue about this in Unpaper's GitHub:
https://github.com/Flameeyes/unpaper/issues/21