[Python-apps-team] Bug#740150: ocrfeeder: Fails to export Searchable PDF without warning but with ValueError on console
Albin
albin.stjerna at gmail.com
Wed Feb 26 11:46:26 UTC 2014
Package: ocrfeeder
Version: 0.7.11-3
Severity: normal
Steps to reproduce:
1. load a number of pictures (I've tried several different)
2. recognise
3. use the menu option "Export as PDF" and choose "Searchable PDF" (don't know
if it happens with "From Scratch" as well, but it's possible)
4. get the following traceback (on console only—no warning messages are shown
to indicate a problem):
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py",
line 320, in exportDialog
self.EXPORT_FORMATS[format][1])
File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py",
line 304, in exportToFormat
name)
File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py",
line 729, in exportPagesWithGenerator
document_generator.addPage(page)
File "/usr/lib/python2.7/dist-
packages/ocrfeeder/feeder/documentGeneration.py", line 431, in addPage
self.addBoxes(page_data.data_boxes)
File "/usr/lib/python2.7/dist-
packages/ocrfeeder/feeder/documentGeneration.py", line 79, in addBoxes
self.addBox(data_box)
File "/usr/lib/python2.7/dist-
packages/ocrfeeder/feeder/documentGeneration.py", line 67, in addBox
self.addText(data_box)
File "/usr/lib/python2.7/dist-
packages/ocrfeeder/feeder/documentGeneration.py", line 404, in addText
text.textLines('\n'.join(lines))
File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/textobject.py", line
436, in textLines
lines = '\n'.split(asUnicode(stuff).strip())
ValueError: empty separator
-- System Information:
Debian Release: jessie/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ocrfeeder depends on:
ii cuneiform 1.1.0+dfsg-4
ii ghostscript 9.05~dfsg-8+b1
ii python 2.7.5-5
ii python-enchant 1.6.5-2
ii python-gtk2 2.24.0-3+b1
ii python-lxml 3.3.1-1
ii python-pygoocanvas 0.14.1-1+b3
ii python-reportlab 3.0~b1-1
ii python-sane [python-imaging-sane] 2.3.0-2
ii tesseract-ocr 3.03.02-3
Versions of packages ocrfeeder recommends:
ii unpaper 0.4.2-1
ii yelp 3.10.1-1
ocrfeeder suggests no packages.
-- no debconf information
More information about the Python-apps-team
mailing list