Bug#886306: python-pyocr: FTBFS: "Unable to parse Tesseract version"
Chris Lamb
lamby at debian.org
Thu Jan 4 08:49:25 UTC 2018
Source: python-pyocr
Version: 0.3.0-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
Tags: patch
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Dear Maintainer,
python-pyocr fails to build from source in unstable/amd64:
[…]
debian/rules override_dh_auto_test
make[1]: Entering directory '/build/1st/python-pyocr-0.3.0'
python run_tests.py
Traceback (most recent call last):
File "run_tests.py", line 12, in <module>
from tests import tests_tesseract
File "/build/1st/python-pyocr-0.3.0/tests/tests_tesseract.py", line 49, in <module>
class TestTxt(unittest.TestCase):
File "/build/1st/python-pyocr-0.3.0/tests/tests_tesseract.py", line 75, in TestTxt
@unittest.skipIf(tesseract.get_version() not in (
File "src/pyocr/tesseract.py", line 374, in get_version
% (ver_string)))
pyocr.tesseract.TesseractError: (0, u'Unable to parse Tesseract version (not a number): [tesseract 4.00.00alpha\n leptonica-1.74.4\n libgif 5.1.4 : libjpeg 6b (libjpeg-turbo 1.5.1) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.8 : libwebp 0.6.0 : libopenjp2 2.3.0\n\n Found AVX\n Found SSE\n]')
[…]
The full build log is attached or can be viewed here:
https://tests.reproducible-builds.org/debian/logs/unstable/amd64/python-pyocr_0.3.0-1.build1.log.gz
Patch is simple:
358 try:
359 els = ver_string.split(" ")[1].split(".")
360 els = [int(x.replace('alpha', '')) for x in els]
^^^^^^^^^^^^^^^^^^^^^
361 major = els[0]
362 minor = els[1]
Best wishes.
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-pyocr.0.3.0-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 8133 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-bugs/attachments/20180104/f7c5e8dd/attachment-0001.obj>
More information about the Reproducible-bugs
mailing list