Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881617 - [guru] app-text/OCRmyPDF-14.0.1-r3 fails tests
Summary: [guru] app-text/OCRmyPDF-14.0.1-r3 fails tests
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alarig Le Lay
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-17 06:59 UTC by Agostino Sarubbo
Modified: 2022-11-26 10:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,261.89 KB, application/x-xz)
2022-11-17 06:59 UTC, Agostino Sarubbo
Details
1-test.log (1-test.log,72 bytes, text/plain)
2022-11-17 06:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-17 06:59:30 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/OCRmyPDF-14.0.1-r3 fails tests.
Discovered on: amd64 (internal ref: guru_ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-17 06:59:35 UTC
Created attachment 833147 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-11-17 06:59:36 UTC
Created attachment 833149 [details]
1-test.log

1-test.log
Comment 3 Agostino Sarubbo gentoo-dev 2022-11-17 06:59:38 UTC
Error(s) that match a know pattern:


    executor(
    for info in _process_content_streams(
    from PIL import _imagingcms
    page = PageInfo(pdf, pageno, infile, check_pages, detailed_analysis)
    pdfinfo = get_pdfinfo(
    pim_icc = pim.icc
    raise self._exception
    raise self.ex
    result = future.result()
    result = self.fn(*self.args, **self.kwargs)
    return PdfInfo(
    return self.__get_result()
    self._execute(
    self._gather_pageinfo(pdf, pageno, infile, check_pages, detailed_analysis)
    self._icc = ImageCmsProfile(iccbytesio)
    self._pages = _pdf_pageinfo_concurrent(
    self._set(core.profile_frombytes(profile.read()))
    yield ImageInfo(name=draw.name, pdfimage=pdfimage, shorthand=draw.shorthand)
    yield from _find_regular_images(container, contentsinfo)
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  File "/usr/lib/python3.8/site-packages/PIL/ImageCms.py", line 190, in __init__
  File "/usr/lib/python3.8/site-packages/PIL/ImageCms.py", line 26, in <module>
  File "/usr/lib/python3.8/site-packages/PIL/_util.py", line 19, in __getattr__
  File "/usr/lib/python3.8/site-packages/pikepdf/models/image.py", line 458, in icc
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/_concurrent.py", line 87, in __call__
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/_pipeline.py", line 165, in get_pdfinfo
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/_sync.py", line 378, in run_pipeline
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/builtin_plugins/concurrency.py", line 141, in _execute
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 382, in __init__
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 513, in _find_regular_images
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 595, in _process_content_streams
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 668, in _pdf_pageinfo_sync
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 711, in _pdf_pageinfo_concurrent
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 748, in __init__
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 794, in _gather_pageinfo
  File "/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/lib/python3.8/site-packages/ocrmypdf/pdfinfo/info.py", line 934, in __init__
')
').returncode
E         ImportError: cannot import name '_imagingcms' from 'PIL' (/usr/lib/python3.8/site-packages/PIL/__init__.py)
E        +  where 15 = CompletedProcess(args=['/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/bin/python3.8', '-m', 'ocrmypdf', '--title', 'Du siehst den Wald vor lauter Bäumen nicht.', '--author', '孔子', '--output-type', 'pdf', '--plugin', 'tests/plugins/tesseract_noop.py', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1/tests/resources/c02-22.pdf', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/temp/pytest-of-portage/pytest-0/test_override_metadata_pdf_0/out.pdf'], returncode=15, stdout='', stderr='An exception occurred while executing the pipeline
E        +  where 15 = CompletedProcess(args=['/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/bin/python3.8', '-m', 'ocrmypdf', '--title', 'Du siehst den Wald vor lauter Bäumen nicht.', '--author', '孔子', '--output-type', 'pdfa', '--plugin', 'tests/plugins/tesseract_noop.py', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1/tests/resources/c02-22.pdf', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/temp/pytest-of-portage/pytest-0/test_override_metadata_pdfa_0/out.pdf'], returncode=15, stdout='', stderr='An exception occurred while executing the pipeline
E       AssertionError: An exception occurred while executing the pipeline
E       ImportError: cannot import name '_imagingcms' from 'PIL' (/usr/lib/python3.8/site-packages/PIL/__init__.py)
FAILED tests/test_main.py::test_corrupt_icc - assert <ExitCode.other_error: 1...
FAILED tests/test_main.py::test_force_ocr - ImportError: cannot import name '...
FAILED tests/test_main.py::test_maximum_options[pdf-hocr] - ImportError: cann...
FAILED tests/test_main.py::test_maximum_options[pdf-sandwich] - ImportError: ...
FAILED tests/test_main.py::test_maximum_options[pdfa-hocr] - ImportError: can...
FAILED tests/test_main.py::test_maximum_options[pdfa-sandwich] - ImportError:...
FAILED tests/test_main.py::test_oversample[hocr] - ImportError: cannot import...
FAILED tests/test_main.py::test_oversample[sandwich] - ImportError: cannot im...
FAILED tests/test_main.py::test_text_curves_force - ImportError: cannot impor...
FAILED tests/test_metadata.py::test_override_metadata[pdf] - AssertionError: ...
FAILED tests/test_metadata.py::test_override_metadata[pdfa] - AssertionError:...
FAILED tests/test_page_numbers.py::test_limited_pages - ImportError: cannot i...
FAILED tests/test_pdfinfo.py::test_jpeg - ImportError: cannot import name '_i...
FAILED tests/test_preprocessing.py::test_convert_to_square_resolution[hocr]
FAILED tests/test_preprocessing.py::test_convert_to_square_resolution[sandwich]
FAILED tests/test_rotation.py::test_rotated_skew_timeout - ImportError: canno...
FAILED tests/test_tesseract.py::test_skip_pages_does_not_replicate[cardinal.pdf]
FAILED tests/test_tesseract.py::test_skip_pages_does_not_replicate[graph_ocred.pdf]
ImportError: cannot import name '_imagingcms' from 'PIL' (/usr/lib/python3.8/site-packages/PIL/__init__.py)
ImportError: cannot import name \'_imagingcms\' from \'PIL\' (/usr/lib/python3.8/site-packages/PIL/__init__.py)
Traceback (most recent call last):
p          = CompletedProcess(args=['/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/bin/python3.8', '-m', 'ocrmypdf', '--title', 'Du siehst den Wald vor lauter Bäumen nicht.', '--author', '孔子', '--output-type', 'pdf', '--plugin', 'tests/plugins/tesseract_noop.py', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1/tests/resources/c02-22.pdf', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/temp/pytest-of-portage/pytest-0/test_override_metadata_pdf_0/out.pdf'], returncode=15, stdout='', stderr='An exception occurred while executing the pipeline
p          = CompletedProcess(args=['/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1-python3_8/install/usr/bin/python3.8', '-m', 'ocrmypdf', '--title', 'Du siehst den Wald vor lauter Bäumen nicht.', '--author', '孔子', '--output-type', 'pdfa', '--plugin', 'tests/plugins/tesseract_noop.py', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/work/OCRmyPDF-14.0.1/tests/resources/c02-22.pdf', '/var/tmp/portage/app-text/OCRmyPDF-14.0.1-r3/temp/pytest-of-portage/pytest-0/test_override_metadata_pdfa_0/out.pdf'], returncode=15, stdout='', stderr='An exception occurred while executing the pipeline
E       assert <ExitCode.other_error: 15> == <ExitCode.ok: 0>
Comment 4 Larry the Git Cow gentoo-dev 2022-11-26 10:54:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=393cb8f92708b018c48ed75f5e1d9eaff40fa70f

commit 393cb8f92708b018c48ed75f5e1d9eaff40fa70f
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
AuthorDate: 2022-11-17 20:46:42 +0000
Commit:     Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
CommitDate: 2022-11-17 20:46:42 +0000

    app-text/OCRmyPDF: try to fix deps
    
    Closes: https://bugs.gentoo.org/881617
    Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>

 .../OCRmyPDF/{OCRmyPDF-14.0.1-r3.ebuild => OCRmyPDF-14.0.1-r4.ebuild}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)