Your message dated Sun, 26 Nov 2023 22:36:00 +0000
with message-id <[email protected]>
and subject line Bug#1054762: fixed in img2pdf 0.5.1-1
has caused the Debian Bug report #1054762,
regarding img2pdf: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i 
python{version} -p 3.11 returned exit code 13
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 [email protected]
immediately.)


-- 
1054762: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054762
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: img2pdf
Version: 0.4.4-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20231027 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> help2man --no-info --name="lossless conversion of raster images to pdf" 
> ./src/img2pdf.py | sed -e 's/\.py//ig;' > img2pdf.1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; 
> python3.11 -m pytest 
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> collected 301 items
> 
> img2pdf_test.py ....FF....FF..................FF........FF.............. [ 
> 18%]
> FF...................................................................... [ 
> 42%]
> ........................................................................ [ 
> 66%]
> ........................................................................ [ 
> 90%]
> .............................                                            
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ___________________________ test_jpg_cmyk[internal] 
> ____________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> jpg_cmyk_img = PosixPath('/tmp/pytest-of-user42/pytest-16/jpg_cmyk0/in.jpg')
> jpg_cmyk_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/jpg_cmyk_pdf0/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["darwin", "win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_jpg_cmyk(tmp_path_factory, jpg_cmyk_img, jpg_cmyk_pdf):
>         tmpdir = tmp_path_factory.mktemp("jpg_cmyk")
> >       compare_ghostscript(
>             tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, gsdevice="tiff32nc", 
> exact=False
>         )
> 
> img2pdf_test.py:5330: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/jpg_cmyk0/in.jpg'
> im2 = '/tmp/pytest-of-user42/pytest-16/jpg_cmyk1/gs-1.tiff', exact = False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b' (0)'
> 
> img2pdf_test.py:348: ValueError
> ____________________________ test_jpg_cmyk[pikepdf] 
> ____________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> jpg_cmyk_img = PosixPath('/tmp/pytest-of-user42/pytest-16/jpg_cmyk0/in.jpg')
> jpg_cmyk_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/jpg_cmyk_pdf1/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["darwin", "win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_jpg_cmyk(tmp_path_factory, jpg_cmyk_img, jpg_cmyk_pdf):
>         tmpdir = tmp_path_factory.mktemp("jpg_cmyk")
> >       compare_ghostscript(
>             tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, gsdevice="tiff32nc", 
> exact=False
>         )
> 
> img2pdf_test.py:5330: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/jpg_cmyk0/in.jpg'
> im2 = '/tmp/pytest-of-user42/pytest-16/jpg_cmyk2/gs-1.tiff', exact = False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b' (0)'
> 
> img2pdf_test.py:348: ValueError
> ___________________________ test_png_rgb16[internal] 
> ___________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> png_rgb16_img = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/normal16_png0/normal16.png')
> png_rgb16_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/png_rgb16_pdf0/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_png_rgb16(tmp_path_factory, png_rgb16_img, png_rgb16_pdf):
>         tmpdir = tmp_path_factory.mktemp("png_rgb16")
>         compare_ghostscript(tmpdir, png_rgb16_img, png_rgb16_pdf, 
> gsdevice="tiff48nc")
>         # poppler outputs 8-bit RGB so the comparison will not be exact
> >       compare_poppler(tmpdir, png_rgb16_img, png_rgb16_pdf, exact=False)
> 
> img2pdf_test.py:5373: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:380: in compare_poppler
>     compare(str(img), str(tmpdir / "poppler-1.png"), exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/normal16_png0/normal16.png'
> im2 = '/tmp/pytest-of-user42/pytest-16/png_rgb160/poppler-1.png', exact = 
> False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b'60.5175 
> (0.605175)'
> 
> img2pdf_test.py:348: ValueError
> ----------------------------- Captured stderr call 
> -----------------------------
> 0
> ___________________________ test_png_rgb16[pikepdf] 
> ____________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> png_rgb16_img = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/normal16_png0/normal16.png')
> png_rgb16_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/png_rgb16_pdf1/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_png_rgb16(tmp_path_factory, png_rgb16_img, png_rgb16_pdf):
>         tmpdir = tmp_path_factory.mktemp("png_rgb16")
>         compare_ghostscript(tmpdir, png_rgb16_img, png_rgb16_pdf, 
> gsdevice="tiff48nc")
>         # poppler outputs 8-bit RGB so the comparison will not be exact
> >       compare_poppler(tmpdir, png_rgb16_img, png_rgb16_pdf, exact=False)
> 
> img2pdf_test.py:5373: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:380: in compare_poppler
>     compare(str(img), str(tmpdir / "poppler-1.png"), exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/normal16_png0/normal16.png'
> im2 = '/tmp/pytest-of-user42/pytest-16/png_rgb161/poppler-1.png', exact = 
> False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b'60.5175 
> (0.605175)'
> 
> img2pdf_test.py:348: ValueError
> ----------------------------- Captured stderr call 
> -----------------------------
> 0
> __________________________ test_png_gray16[internal] 
> ___________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> png_gray16_img = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/gray16_png0/gray16.png')
> png_gray16_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/png_gray16_pdf0/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_png_gray16(tmp_path_factory, png_gray16_img, png_gray16_pdf):
>         tmpdir = tmp_path_factory.mktemp("png_gray16")
>         # ghostscript outputs 8-bit grayscale, so the comparison will not be 
> exact
> >       compare_ghostscript(
>             tmpdir, png_gray16_img, png_gray16_pdf, gsdevice="pnggray", 
> exact=False
>         )
> 
> img2pdf_test.py:5508: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/gray16_png0/gray16.png'
> im2 = '/tmp/pytest-of-user42/pytest-16/png_gray160/gs-1.png', exact = False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b'60.549 (0.60549)'
> 
> img2pdf_test.py:348: ValueError
> ___________________________ test_png_gray16[pikepdf] 
> ___________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> png_gray16_img = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/gray16_png0/gray16.png')
> png_gray16_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/png_gray16_pdf1/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_png_gray16(tmp_path_factory, png_gray16_img, png_gray16_pdf):
>         tmpdir = tmp_path_factory.mktemp("png_gray16")
>         # ghostscript outputs 8-bit grayscale, so the comparison will not be 
> exact
> >       compare_ghostscript(
>             tmpdir, png_gray16_img, png_gray16_pdf, gsdevice="pnggray", 
> exact=False
>         )
> 
> img2pdf_test.py:5508: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/gray16_png0/gray16.png'
> im2 = '/tmp/pytest-of-user42/pytest-16/png_gray161/gs-1.png', exact = False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b'60.549 (0.60549)'
> 
> img2pdf_test.py:348: ValueError
> ____________________________ test_png_icc[internal] 
> ____________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> png_icc_img = PosixPath('/tmp/pytest-of-user42/pytest-16/icc_png0/icc.png')
> png_icc_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/png_icc_pdf0/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["darwin", "win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_png_icc(tmp_path_factory, png_icc_img, png_icc_pdf):
>         tmpdir = tmp_path_factory.mktemp("png_icc")
> >       compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, exact=False, 
> > icc=True)
> 
> img2pdf_test.py:5571: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/icc_png0/icc.png'
> im2 = '/tmp/pytest-of-user42/pytest-16/png_icc0/gs-1.png', exact = False
> icc = True, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b'61.5441 
> (0.615441)'
> 
> img2pdf_test.py:348: ValueError
> ____________________________ test_png_icc[pikepdf] 
> _____________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> png_icc_img = PosixPath('/tmp/pytest-of-user42/pytest-16/icc_png0/icc.png')
> png_icc_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/png_icc_pdf1/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["darwin", "win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_png_icc(tmp_path_factory, png_icc_img, png_icc_pdf):
>         tmpdir = tmp_path_factory.mktemp("png_icc")
> >       compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, exact=False, 
> > icc=True)
> 
> img2pdf_test.py:5571: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/icc_png0/icc.png'
> im2 = '/tmp/pytest-of-user42/pytest-16/png_icc1/gs-1.png', exact = False
> icc = True, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b'61.5441 
> (0.615441)'
> 
> img2pdf_test.py:348: ValueError
> __________________________ test_tiff_cmyk8[internal] 
> ___________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> tiff_cmyk8_img = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/tiff_cmyk80/in.tiff')
> tiff_cmyk8_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/tiff_cmyk8_pdf0/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_tiff_cmyk8(tmp_path_factory, tiff_cmyk8_img, tiff_cmyk8_pdf):
>         tmpdir = tmp_path_factory.mktemp("tiff_cmyk8")
> >       compare_ghostscript(
>             tmpdir, tiff_cmyk8_img, tiff_cmyk8_pdf, gsdevice="tiff32nc", 
> exact=False
>         )
> 
> img2pdf_test.py:5687: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/tiff_cmyk80/in.tiff'
> im2 = '/tmp/pytest-of-user42/pytest-16/tiff_cmyk81/gs-1.tiff', exact = False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b' (0)'
> 
> img2pdf_test.py:348: ValueError
> ___________________________ test_tiff_cmyk8[pikepdf] 
> ___________________________
> 
> tmp_path_factory = TempPathFactory(_given_basetemp=None, 
> _trace=<pluggy._tracing.TagTracerSub object at 0x7fd85591fed0>, 
> _basetemp=PosixPath('/tmp/pytest-of-user42/pytest-16'), _retention_count=3, 
> _retention_policy='all')
> tiff_cmyk8_img = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/tiff_cmyk80/in.tiff')
> tiff_cmyk8_pdf = 
> PosixPath('/tmp/pytest-of-user42/pytest-16/tiff_cmyk8_pdf1/out.pdf')
> 
>     @pytest.mark.skipif(
>         sys.platform in ["win32"],
>         reason="test utilities not available on Windows and MacOS",
>     )
>     def test_tiff_cmyk8(tmp_path_factory, tiff_cmyk8_img, tiff_cmyk8_pdf):
>         tmpdir = tmp_path_factory.mktemp("tiff_cmyk8")
> >       compare_ghostscript(
>             tmpdir, tiff_cmyk8_img, tiff_cmyk8_pdf, gsdevice="tiff32nc", 
> exact=False
>         )
> 
> img2pdf_test.py:5687: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> img2pdf_test.py:372: in compare_ghostscript
>     compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> im1 = '/tmp/pytest-of-user42/pytest-16/tiff_cmyk80/in.tiff'
> im2 = '/tmp/pytest-of-user42/pytest-16/tiff_cmyk82/gs-1.tiff', exact = False
> icc = False, cmyk = False
> 
>     def compare(im1, im2, exact, icc, cmyk):
>         if exact:
>             if cmyk:
>                 raise Exception("cmyk cannot be exact")
>             elif icc:
>                 raise Exception("icc cannot be exact")
>             else:
>                 subprocess.check_call(
>                     COMPARE
>                     + [
>                         "-metric",
>                         "AE",
>                         im1,
>                         im2,
>                         "null:",
>                     ]
>                 )
>         else:
>             iccargs = []
>             if icc:
>                 if ICC_PROFILE is None:
>                     pytest.skip("Could not locate an ICC profile")
>                 iccargs = ["-profile", ICC_PROFILE]
>             psnr = subprocess.run(
>                 COMPARE
>                 + iccargs
>                 + [
>                     "-metric",
>                     "PSNR",
>                     im1,
>                     im2,
>                     "null:",
>                 ],
>                 check=False,
>                 stderr=subprocess.PIPE,
>             ).stderr
>             assert psnr != b"0"
> >           psnr = float(psnr.strip(b"0"))
> E           ValueError: could not convert string to float: b' (0)'
> 
> img2pdf_test.py:348: ValueError
> =========================== short test summary info 
> ============================
> FAILED img2pdf_test.py::test_jpg_cmyk[internal] - ValueError: could not 
> conve...
> FAILED img2pdf_test.py::test_jpg_cmyk[pikepdf] - ValueError: could not 
> conver...
> FAILED img2pdf_test.py::test_png_rgb16[internal] - ValueError: could not 
> conv...
> FAILED img2pdf_test.py::test_png_rgb16[pikepdf] - ValueError: could not 
> conve...
> FAILED img2pdf_test.py::test_png_gray16[internal] - ValueError: could not 
> con...
> FAILED img2pdf_test.py::test_png_gray16[pikepdf] - ValueError: could not 
> conv...
> FAILED img2pdf_test.py::test_png_icc[internal] - ValueError: could not 
> conver...
> FAILED img2pdf_test.py::test_png_icc[pikepdf] - ValueError: could not 
> convert...
> FAILED img2pdf_test.py::test_tiff_cmyk8[internal] - ValueError: could not 
> con...
> FAILED img2pdf_test.py::test_tiff_cmyk8[pikepdf] - ValueError: could not 
> conv...
> ======================= 10 failed, 291 passed in 47.80s 
> ========================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m pytest 
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/10/27/img2pdf_0.4.4-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231027;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231027&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Source: img2pdf
Source-Version: 0.5.1-1
Done: Johannes Schauer Marin Rodrigues <[email protected]>

We believe that the bug you reported is fixed in the latest version of
img2pdf, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes Schauer Marin Rodrigues <[email protected]> (supplier of updated 
img2pdf 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 [email protected])


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

Format: 1.8
Date: Sun, 26 Nov 2023 23:17:11 +0100
Source: img2pdf
Architecture: source
Version: 0.5.1-1
Distribution: unstable
Urgency: medium
Maintainer: Johannes Schauer Marin Rodrigues <[email protected]>
Changed-By: Johannes Schauer Marin Rodrigues <[email protected]>
Closes: 1054762
Changes:
 img2pdf (0.5.1-1) unstable; urgency=medium
 .
   * New upstream version 0.5.1
      - patches for imagemagick in unstable (closes: #1054762)
   * refresh patches
   * add debian/patches/remove-exact-cmyk8.patch
   * add debian/patches/imagemagick-issue-285
   * delete debian/upstream/signing-key.asc as pypi stopped shipping gpg
     signatures
Checksums-Sha1:
 9007c6a97e796d9c07546164cbae3050830be4d5 2676 img2pdf_0.5.1-1.dsc
 9975d106da2c7499eb47d38ee48f654ad5aa3104 104241 img2pdf_0.5.1.orig.tar.gz
 cd3dc91caae20b867de980f3d5ada0eee1053fda 6128 img2pdf_0.5.1-1.debian.tar.xz
Checksums-Sha256:
 8e2224b73736ab1fb1080a718c0c7e24b317f89f6fd15f8e6589db3aa02a4ddc 2676 
img2pdf_0.5.1-1.dsc
 73847e47242f4b5bd113c70049e03e03212936c2727cd2a8bf564229a67d0b95 104241 
img2pdf_0.5.1.orig.tar.gz
 ca1777b81b3ec6a9459f754d99ebefb231bcc5e1988a17a44a7406ed4ff60a2d 6128 
img2pdf_0.5.1-1.debian.tar.xz
Files:
 e28b0f40b8f6ace8d0461668af126b1f 2676 python optional img2pdf_0.5.1-1.dsc
 ff4820e35b5eeaefb9c588f48d95cf2f 104241 python optional 
img2pdf_0.5.1.orig.tar.gz
 051c0c911cba1fc0037e710b436d2168 6128 python optional 
img2pdf_0.5.1-1.debian.tar.xz

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

iQIzBAEBCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmVjxDcACgkQ8sulx4+9
g+G5VQ/9G0SuACTN009977GXeGw3PD3+krE8/aCpStxPEy4kvLQhxbj5bR3/US5H
2anL15wrmsZaRAQBd96iRmH6KvoZQhDFMS9zTNrLwe/aE8wXtO2U5QI6VjQVuGHo
y4hkQaxPQzqjSOXNOZ6JsulrXzQaYSgoVLPNPjAbztndfikNIHHtwW9ePT5bxIUQ
QKtflMCqm1iI1+G7XhW7FwR3jMgeCPi6kkLEpcy28Eg+JKsG8O6nA3lFfxTO6vxr
CXNxmslPW6uloCE3xsD5Swi5r3D/qc28N7/1dXVIXEWbttvBoJcWIVn0ONXAI4iU
AfQ5n6T4kuY9rWjIoEGqPExYFhpbwY9VKGPXdbHJ672qAJ3EoNg+9yEiJaVePKCB
Wp6fotjmYtLRWYwWatPxOlKgwlM/1TzF/kNmqDncAnl1xHnsCezF4OrYOoXSDQQK
VkOAZwp1A3e3pxOuc6RUOLS3WL+zTU3HoZ6tOi84DextUTgc0lIjSvw6TU0MZeyy
p6XoemOeSaQTfeYDs6v8DkERK+5c+LJU3//wmfyZnC0I2eitPIhmwD8VL/ID43pE
UvVCRn8Tvg2MQ9HpQY3OBiTloO2oZaToIeteOTNKIk6qlnz9rBKWAVEvgg7eF9W0
/R3rR0bEPHZHMVCdduPsr8g6oQ7lT437/UFE2gcFV9bWIfcQK38=
=nI5C
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to