--- 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 ---