Source: python-pyocr Version: 0.3.0-1 Severity: serious Justification: fails to build from source User: [email protected] Usertags: ftbfs Tags: patch X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / chris-lamb.co.uk
`-
python-pyocr.0.3.0-1.unstable.amd64.log.txt.gz
Description: Binary data

