Your message dated Wed, 18 Sep 2019 23:48:59 +0000
with message-id <e1iajgx-0000ho...@fasolo.debian.org>
and subject line Bug#939044: fixed in ocrmypdf 9.0.3+dfsg-1
has caused the Debian Bug report #939044,
regarding ocrmypdf: autopkgtest not compatible with new pikepdf, ghostscript 
and/or pytest
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
939044: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939044
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: ocrmypdf
Version: 8.0.1+dfsg-1
Severity: serious
Tags: sid bullseye
User: debian...@lists.debian.org
Usertags: needs-update
Control: affects -1 src:pikepdf
Control: affects -1 src:ghostscript
Control: affects -1 src:pytest

[X-Debbugs-CC: debian...@lists.debian.org, pike...@packages.debian.org,
ghostscr...@packages.debian.org, pyt...@packages.debian.org]

Dear maintainers,

With a recent upload of pikepdf and with a recent upload of ghostscript
and with a recent upload of pytest (althought that pulls in the others)
the autopkgtest of ocrmypdf fails in testing when that autopkgtest is
run with the binary packages of those packages from unstable. It passes
when run with only packages from testing. In tabular form, e.g.:
                       pass            fail
pikepdf                from testing    1.6.1+dfsg-1
ocrmypdf               from testing    8.0.1+dfsg-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of pikepdf,
ghostscript and pytest to testing [1]. Because failure is triggered by
two packages separately, I filed the bug against ocrmypdf, please
reassign (and clone) if that wasn't correct.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=pikepdf

https://ci.debian.net/data/autopkgtest/testing/amd64/o/ocrmypdf/2854254/log.gz

=================================== FAILURES
===================================
_______________________ test_non_square_resolution[hocr]
_______________________

renderer = 'hocr'
spoof_tesseract_cache = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
resources =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources')
outpdf =
'/tmp/pytest-of-debci/pytest-0/test_non_square_resolution_hoc0/out.pdf'

    @pytest.mark.parametrize('renderer', RENDERERS)
    def test_non_square_resolution(renderer, spoof_tesseract_cache,
resources, outpdf):
        # Confirm input image is non-square resolution
        in_pageinfo = PdfInfo(resources / 'aspect.pdf')
        assert in_pageinfo[0].xres != in_pageinfo[0].yres

        check_ocrmypdf(
            resources / 'aspect.pdf',
            outpdf,
            '--pdf-renderer',
            renderer,
>           env=spoof_tesseract_cache,
        )

tests/test_main.py:481:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

input_file =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources/aspect.pdf')
output_file =
'/tmp/pytest-of-debci/pytest-0/test_non_square_resolution_hoc0/out.pdf'
env = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
args = ('--pdf-renderer', 'hocr')
p = <subprocess.Popen object at 0x7f12ee1bcb90>, out = ''

    @pytest.helpers.register
    def check_ocrmypdf(input_file, output_file, *args, env=None):
        "Run ocrmypdf and confirmed that a valid file was created"

        p, out, err = run_ocrmypdf(input_file, output_file, *args, env=env)
        # ensure py.test collects the output, use -s to view
        print(err, file=sys.stderr)
>       assert p.returncode == 0
E       assert 15 == 0
E        +  where 15 = <subprocess.Popen object at
0x7f12ee1bcb90>.returncode

tests/conftest.py:155: AssertionError
----------------------------- Captured stderr call
-----------------------------
   INFO -    1: [tesseract] Tesseract cache folder
/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/cache/aspect/__-l__eng__000001.ocr.png__000001__hocr__txt
- HIT
  ERROR - Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 712, in
run_pooled_job_without_exceptions
    register_cleanup, touch_files_only)
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 544, in
job_wrapper_io_files
    ret_val = user_defined_work_func(*params)
  File "/usr/lib/python3/dist-packages/ocrmypdf/_pipeline.py", line 827,
in convert_to_pdfa
    pdf_layers_file.save(layers_file)
ValueError: Cannot overwrite input file


_____________________ test_non_square_resolution[sandwich]
_____________________

renderer = 'sandwich'
spoof_tesseract_cache = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
resources =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources')
outpdf =
'/tmp/pytest-of-debci/pytest-0/test_non_square_resolution_san0/out.pdf'

    @pytest.mark.parametrize('renderer', RENDERERS)
    def test_non_square_resolution(renderer, spoof_tesseract_cache,
resources, outpdf):
        # Confirm input image is non-square resolution
        in_pageinfo = PdfInfo(resources / 'aspect.pdf')
        assert in_pageinfo[0].xres != in_pageinfo[0].yres

        check_ocrmypdf(
            resources / 'aspect.pdf',
            outpdf,
            '--pdf-renderer',
            renderer,
>           env=spoof_tesseract_cache,
        )

tests/test_main.py:481:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

input_file =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources/aspect.pdf')
output_file =
'/tmp/pytest-of-debci/pytest-0/test_non_square_resolution_san0/out.pdf'
env = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
args = ('--pdf-renderer', 'sandwich')
p = <subprocess.Popen object at 0x7f12ee1bcb50>, out = ''

    @pytest.helpers.register
    def check_ocrmypdf(input_file, output_file, *args, env=None):
        "Run ocrmypdf and confirmed that a valid file was created"

        p, out, err = run_ocrmypdf(input_file, output_file, *args, env=env)
        # ensure py.test collects the output, use -s to view
        print(err, file=sys.stderr)
>       assert p.returncode == 0
E       assert 15 == 0
E        +  where 15 = <subprocess.Popen object at
0x7f12ee1bcb50>.returncode

tests/conftest.py:155: AssertionError
----------------------------- Captured stderr call
-----------------------------
   INFO -    1: [tesseract] Tesseract cache folder
/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/cache/aspect/__-l__eng__000001.ocr.png__000001.text__pdf__txt
- HIT
  ERROR - Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 712, in
run_pooled_job_without_exceptions
    register_cleanup, touch_files_only)
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 544, in
job_wrapper_io_files
    ret_val = user_defined_work_func(*params)
  File "/usr/lib/python3/dist-packages/ocrmypdf/_pipeline.py", line 827,
in convert_to_pdfa
    pdf_layers_file.save(layers_file)
ValueError: Cannot overwrite input file


___________________ test_convert_to_square_resolution[hocr]
____________________

renderer = 'hocr'
spoof_tesseract_cache = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
resources =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources')
outpdf =
'/tmp/pytest-of-debci/pytest-0/test_convert_to_square_resolut0/out.pdf'

    @pytest.mark.parametrize('renderer', RENDERERS)
    def test_convert_to_square_resolution(
        renderer, spoof_tesseract_cache, resources, outpdf
    ):
        # Confirm input image is non-square resolution
        in_pageinfo = PdfInfo(resources / 'aspect.pdf')
        assert in_pageinfo[0].xres != in_pageinfo[0].yres

        # --force-ocr requires means forced conversion to square resolution
        check_ocrmypdf(
            resources / 'aspect.pdf',
            outpdf,
            '--force-ocr',
            '--pdf-renderer',
            renderer,
>           env=spoof_tesseract_cache,
        )

tests/test_main.py:506:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

input_file =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources/aspect.pdf')
output_file =
'/tmp/pytest-of-debci/pytest-0/test_convert_to_square_resolut0/out.pdf'
env = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
args = ('--force-ocr', '--pdf-renderer', 'hocr')
p = <subprocess.Popen object at 0x7f12ee17c690>, out = ''

    @pytest.helpers.register
    def check_ocrmypdf(input_file, output_file, *args, env=None):
        "Run ocrmypdf and confirmed that a valid file was created"

        p, out, err = run_ocrmypdf(input_file, output_file, *args, env=env)
        # ensure py.test collects the output, use -s to view
        print(err, file=sys.stderr)
>       assert p.returncode == 0
E       assert 15 == 0
E        +  where 15 = <subprocess.Popen object at
0x7f12ee17c690>.returncode

tests/conftest.py:155: AssertionError
----------------------------- Captured stderr call
-----------------------------
   INFO -    1: [tesseract] Tesseract cache folder
/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/cache/aspect/__-l__eng__000001.ocr.png__000001__hocr__txt
- HIT
  ERROR - Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 712, in
run_pooled_job_without_exceptions
    register_cleanup, touch_files_only)
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 544, in
job_wrapper_io_files
    ret_val = user_defined_work_func(*params)
  File "/usr/lib/python3/dist-packages/ocrmypdf/_pipeline.py", line 827,
in convert_to_pdfa
    pdf_layers_file.save(layers_file)
ValueError: Cannot overwrite input file


_________________ test_convert_to_square_resolution[sandwich]
__________________

renderer = 'sandwich'
spoof_tesseract_cache = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
resources =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources')
outpdf =
'/tmp/pytest-of-debci/pytest-0/test_convert_to_square_resolut1/out.pdf'

    @pytest.mark.parametrize('renderer', RENDERERS)
    def test_convert_to_square_resolution(
        renderer, spoof_tesseract_cache, resources, outpdf
    ):
        # Confirm input image is non-square resolution
        in_pageinfo = PdfInfo(resources / 'aspect.pdf')
        assert in_pageinfo[0].xres != in_pageinfo[0].yres

        # --force-ocr requires means forced conversion to square resolution
        check_ocrmypdf(
            resources / 'aspect.pdf',
            outpdf,
            '--force-ocr',
            '--pdf-renderer',
            renderer,
>           env=spoof_tesseract_cache,
        )

tests/test_main.py:506:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

input_file =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources/aspect.pdf')
output_file =
'/tmp/pytest-of-debci/pytest-0/test_convert_to_square_resolut1/out.pdf'
env = {'ADTTMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS':
'/tmp/autopkgtest-lxc._q0vjo65/do...q0vjo65/downtmp/test-suite-artifacts',
'AUTOPKGTEST_TMP':
'/tmp/autopkgtest-lxc._q0vjo65/downtmp/autopkgtest_tmp', ...}
args = ('--force-ocr', '--pdf-renderer', 'sandwich')
p = <subprocess.Popen object at 0x7f12edfd38d0>, out = ''

    @pytest.helpers.register
    def check_ocrmypdf(input_file, output_file, *args, env=None):
        "Run ocrmypdf and confirmed that a valid file was created"

        p, out, err = run_ocrmypdf(input_file, output_file, *args, env=env)
        # ensure py.test collects the output, use -s to view
        print(err, file=sys.stderr)
>       assert p.returncode == 0
E       assert 15 == 0
E        +  where 15 = <subprocess.Popen object at
0x7f12edfd38d0>.returncode

tests/conftest.py:155: AssertionError
----------------------------- Captured stderr call
-----------------------------
   INFO -    1: [tesseract] Tesseract cache folder
/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/cache/aspect/__-l__eng__000001.ocr.png__000001.text__pdf__txt
- HIT
  ERROR - Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 712, in
run_pooled_job_without_exceptions
    register_cleanup, touch_files_only)
  File "/usr/lib/python3/dist-packages/ruffus/task.py", line 544, in
job_wrapper_io_files
    ret_val = user_defined_work_func(*params)
  File "/usr/lib/python3/dist-packages/ocrmypdf/_pipeline.py", line 827,
in convert_to_pdfa
    pdf_layers_file.save(layers_file)
ValueError: Cannot overwrite input file


_________________________ test_metadata_fixup_warning
__________________________

resources =
PosixPath('/tmp/autopkgtest-lxc._q0vjo65/downtmp/build.Oxe/src/tests/resources')
outdir =
PosixPath('/tmp/pytest-of-debci/pytest-0/test_metadata_fixup_warning0')

    def test_metadata_fixup_warning(resources, outdir):
        from ocrmypdf._pipeline import metadata_fixup

        input_files = [
            str(outdir / 'graph.repaired.pdf'),
            str(outdir / 'layers.rendered.pdf'),
            str(outdir / 'pdfa.pdf'),  # It is okay that this is not a PDF/A
        ]
        for f in input_files:
            copyfile(resources / 'graph.pdf', f)

        log = MagicMock()
        context = MagicMock()
        metadata_fixup(
            input_files_groups=input_files,
            output_file=outdir / 'out.pdf',
            log=log,
            context=context,
        )
        log.warning.assert_not_called()

        # Now add some metadata that will not be copyable
        graph = pikepdf.open(outdir / 'graph.repaired.pdf')
        with graph.open_metadata() as meta:
            meta['prism2:publicationName'] = 'OCRmyPDF Test'
>       graph.save(outdir / 'graph.repaired.pdf')
E       ValueError: Cannot overwrite input file

tests/test_metadata.py:314: ValueError

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: ocrmypdf
Source-Version: 9.0.3+dfsg-1

We believe that the bug you reported is fixed in the latest version of
ocrmypdf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 939...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sean Whitton <spwhit...@spwhitton.name> (supplier of updated ocrmypdf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 18 Sep 2019 16:32:25 -0700
Source: ocrmypdf
Architecture: source
Version: 9.0.3+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Sean Whitton <spwhit...@spwhitton.name>
Changed-By: Sean Whitton <spwhit...@spwhitton.name>
Closes: 935749 939044 940497
Changes:
 ocrmypdf (9.0.3+dfsg-1) unstable; urgency=medium
 .
   * New upstream release (Closes: #939044, #940497).
   * Add tesseract-ocr-deu to autopkgtest deps (Closes: #935749).
Checksums-Sha1:
 30d551c599418db85be7d102a268bcb1031630ba 2563 ocrmypdf_9.0.3+dfsg-1.dsc
 51f2e0d105e89fb4ac33ae86a8faa7d08fd4c994 6026072 
ocrmypdf_9.0.3+dfsg.orig.tar.xz
 a35e604b8594baa523805bf037fac86c7e520587 38196 
ocrmypdf_9.0.3+dfsg-1.debian.tar.xz
Checksums-Sha256:
 46827ab10f39c997cb0ed4e222c5d1cd2ba3e1151e63f97534c1f2434f5e1de3 2563 
ocrmypdf_9.0.3+dfsg-1.dsc
 9fdcd8ce004f59cc5a733b25bd0f431d741ef6f580e036265cc1d59b3613bba3 6026072 
ocrmypdf_9.0.3+dfsg.orig.tar.xz
 2e3f860b92fed238dad225a157526d4107020b41a5574dec350c7caf4f3f9ddd 38196 
ocrmypdf_9.0.3+dfsg-1.debian.tar.xz
Files:
 55d8087eb7f909d5ee9670e942c14ef7 2563 graphics optional 
ocrmypdf_9.0.3+dfsg-1.dsc
 0c471a335f82bbdf1fd2b597efbf2514 6026072 graphics optional 
ocrmypdf_9.0.3+dfsg.orig.tar.xz
 5e214588b3eeda063212c83f3c463dd0 38196 graphics optional 
ocrmypdf_9.0.3+dfsg-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAl2CvrUACgkQaVt65L8G
YkAmWhAAm2mHPMjtDcGU4b8VMJUFGDBbyjN8AgzQmCTpizEinHIuXY5tokjQy9Fx
ijb2zr0GU7J7qnjudmGA46pg48CYxlVNHVBmL51QX9KvHDoOsUqL2+mieObf7IFc
6Jbh9Ybf1vs1DbopdL9/6stPdm0IjNLvmqIJSwQViQWfGjSZUCkBChYjHF2fWqGL
o2latYjHM4nGYamZQfwTJYDhBScw+vChA4n34/oOq6lTk0Wh1rvi/B6Oy4791GRB
3cXIqomGXaX6p+SrYY9uCHac3MtzBgTTLA3tDWibXZymcu3Zw96+783RpTrPZs3P
bY9s3fMC/u91UT+iihVoC5P3lwROhLcm0d0pD1tfPLBN2elvhsgyGPL4SJNeHIV7
xmEPRc8v0Zl6u1wy0Ph7JD2EQlyb5VsSREzy/p8ckGLhUPQ5Wfe3WjZf22oHOmEk
CUI/I8EcJILkD1Zfe0Um3L2mTL4LikzDmtDUxrbe0Yje1SJDoBGmxr9u50TP1N59
xlp+mKwT9V31K8DRacOrvrDvgB7jlZsz4OK2gLzu73z65WshzAeJ/etujNk6RwE2
SbwvdpB6W5tjkgvcz6Rxsauk2UgdCMua/eckaHKcPFUWywco96nCqnQnMwKyticn
+bAfiZ+EnfHa0TVDFAumdEker5kSRYx6i/LRL15ZMl4Xt44MZmE=
=Q0FT
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to