Your message dated Sat, 20 Apr 2024 08:39:41 +0000
with message-id <[email protected]>
and subject line Bug#1068295: fixed in python-qrcode 7.4.2-5
has caused the Debian Bug report #1068295,
regarding qrcode fails its autopkg tests with pillow 10.3
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.)
--
1068295: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068295
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-qrcode
Version: 7.4.2-4
Severity: serious
Tags: sid trixie
qrcode fails its autopkg tests with pillow 10.3:
[...]
28s autopkgtest [21:55:27]: test qrcode: [-----------------------
28s ============================= test session starts
==============================
28s platform linux -- Python 3.12.2, pytest-7.4.4, pluggy-1.4.0
28s rootdir: /tmp/autopkgtest-lxc.js984avw/downtmp/autopkgtest_tmp
28s collected 79 items
28s
28s tests/test_example.py .
[ 1%]
30s tests/test_qrcode.py
................................................... [ 65%]
31s ...
[ 69%]
31s tests/test_qrcode_svg.py ......
[ 77%]
31s tests/test_release.py ....
[ 82%]
31s tests/test_script.py .........F...
[ 98%]
31s tests/test_util.py .
[100%]
31s
31s =================================== FAILURES
===================================
31s ____________________________ ScriptTest.test_piped
_____________________________
31s
31s self = <tests.test_script.ScriptTest testMethod=test_piped>
31s mock_stdout = <MagicMock name='stdout' id='139727054521984'>
31s
31s @mock.patch("os.isatty", lambda *args: False)
31s @mock.patch("sys.stdout")
31s @unittest.skipIf(not Image, "Requires PIL")
31s def test_piped(self, mock_stdout):
31s > main(["testtext"])
31s
31s tests/test_script.py:33:
31s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
31s /usr/lib/python3/dist-packages/qrcode/console_scripts.py:139: in main
31s img.save(sys.stdout.buffer)
31s /usr/lib/python3/dist-packages/qrcode/image/pil.py:51: in save
31s self._img.save(stream, format=format, **kwargs)
31s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
31s
31s self = <PIL.Image.Image image mode=1 size=290x290 at 0x7F14BD72F3E0>
31s fp = <MagicMock name='stdout.buffer' id='139727054534272'>, format
= 'PNG'
31s params = {}
31s filename =
'/tmp/autopkgtest-lxc.js984avw/downtmp/autopkgtest_tmp/MagicMock/stdout.buffer/139727054534272'
31s open_fp = True, save_all = False, filename_ext = '', ext = ''
31s
31s def save(self, fp, format=None, **params) -> None:
31s """
31s Saves this image under the given filename. If no format is
31s specified, the format to use is determined from the filename
31s extension, if possible.
31s
31s Keyword options can be used to provide additional instructions
31s to the writer. If a writer doesn't recognise an option, it is
31s silently ignored. The available options are described in the
31s :doc:`image format documentation
31s <../handbook/image-file-formats>` for each writer.
31s
31s You can use a file object instead of a filename. In this case,
31s you must always specify the format. The file object must
31s implement the ``seek``, ``tell``, and ``write``
31s methods, and be opened in binary mode.
31s
31s :param fp: A filename (string), os.PathLike object or file
object.
31s :param format: Optional format override. If omitted, the
31s format to use is determined from the filename extension.
31s If a file object was used instead of a filename, this
31s parameter should always be used.
31s :param params: Extra parameters to the image writer.
31s :returns: None
31s :exception ValueError: If the output format could not be
determined
31s from the file name. Use the format option to solve this.
31s :exception OSError: If the file could not be written. The
file
31s may have been created, and may contain partial data.
31s """
31s
31s filename: str | bytes = ""
31s open_fp = False
31s if is_path(fp):
31s filename = os.path.realpath(os.fspath(fp))
31s open_fp = True
31s elif fp == sys.stdout:
31s try:
31s fp = sys.stdout.buffer
31s except AttributeError:
31s pass
31s if not filename and hasattr(fp, "name") and is_path(fp.name):
31s # only set the name for metadata purposes
31s filename = os.path.realpath(os.fspath(fp.name))
31s
31s # may mutate self!
31s self._ensure_mutable()
31s
31s save_all = params.pop("save_all", False)
31s self.encoderinfo = params
31s self.encoderconfig = ()
31s
31s preinit()
31s
31s filename_ext = os.path.splitext(filename)[1].lower()
31s ext = filename_ext.decode() if isinstance(filename_ext,
bytes) else filename_ext
31s
31s if not format:
31s if ext not in EXTENSION:
31s init()
31s try:
31s format = EXTENSION[ext]
31s except KeyError as e:
31s msg = f"unknown file extension: {ext}"
31s raise ValueError(msg) from e
31s
31s if format.upper() not in SAVE:
31s init()
31s if save_all:
31s save_handler = SAVE_ALL[format.upper()]
31s else:
31s save_handler = SAVE[format.upper()]
31s
31s created = False
31s if open_fp:
31s created = not os.path.exists(filename)
31s if params.get("append", False):
31s # Open also for reading ("+"), because TIFF save_all
31s # writer needs to go back and edit the written data.
31s fp = builtins.open(filename, "r+b")
31s else:
31s > fp = builtins.open(filename, "w+b")
31s E FileNotFoundError: [Errno 2] No such file or
directory:
'/tmp/autopkgtest-lxc.js984avw/downtmp/autopkgtest_tmp/MagicMock/stdout.buffer/139727054534272'
31s
31s /usr/lib/python3/dist-packages/PIL/Image.py:2456: FileNotFoundError
31s =============================== warnings summary
===============================
31s tests/test_script.py::ScriptTest::test_bad_factory
31s /usr/lib/python3/dist-packages/qrcode/console_scripts.py:43:
DeprecationWarning: pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
31s from pkg_resources import get_distribution
31s
31s -- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
31s =========================== short test summary info
============================
31s FAILED tests/test_script.py::ScriptTest::test_piped -
FileNotFoundError: [Err...
31s =================== 1 failed, 78 passed, 1 warning in 2.82s
====================
31s autopkgtest [21:55:30]: test qrcode: -----------------------]
31s autopkgtest [21:55:30]: test qrcode: - - - - - - - - - - results
- - - - - - - - - -
31s qrcode FAIL non-zero exit status 1
--- End Message ---
--- Begin Message ---
Source: python-qrcode
Source-Version: 7.4.2-5
Done: Bastian Germann <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-qrcode, 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.
Bastian Germann <[email protected]> (supplier of updated python-qrcode 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: Sat, 20 Apr 2024 08:10:08 +0000
Source: python-qrcode
Architecture: source
Version: 7.4.2-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 1068295
Changes:
python-qrcode (7.4.2-5) unstable; urgency=medium
.
* Team upload
* Patch: Skip tests with mock on stdout (Closes: #1068295)
* Run complete testsuite
Checksums-Sha1:
7141b18c0b2a442b02890eca341c290f84c51585 2130 python-qrcode_7.4.2-5.dsc
e1d0c278729dae7e86adfe4d9323c7f8ae82fee1 5608
python-qrcode_7.4.2-5.debian.tar.xz
82a15dbedc2c4c3019079e4041418e6418d49b92 7104
python-qrcode_7.4.2-5_source.buildinfo
Checksums-Sha256:
ff8190c83880f16c85d7ee31496c7fb4b1c5ad3b547504d5818dc246d804e00c 2130
python-qrcode_7.4.2-5.dsc
4c00b4e72fcc733d1eb0230f0350baf16cc5f797703ac0988cad404927c865f6 5608
python-qrcode_7.4.2-5.debian.tar.xz
b5a9ddfacb3bf15bef84f93ab9acec586c317ec2e79972ad6357041959729a70 7104
python-qrcode_7.4.2-5_source.buildinfo
Files:
be40cce8d187228d11ed594365ea603f 2130 python optional python-qrcode_7.4.2-5.dsc
5f5e530ccb288c1bd9a2f367a12bda6d 5608 python optional
python-qrcode_7.4.2-5.debian.tar.xz
8bdf693bbf5d9b9c194acf9deec0ed91 7104 python optional
python-qrcode_7.4.2-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmYjeU8QHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFK/fC/9dnpeQor+FgS/YTZACyLCFBtkgo06rFuCt
Aiko8WQlOeRD9BX2BZq54linPl4eaLmhBya7ROsdm6iq9MI7QS+gzWVY24tgO+M4
799mRpppuhXGuI9juVxhp8oM6dOc85SF0ZQ7ZuVO88XFIdV9tZvaR/IgKaJHMKCC
qihYDcgnYtb/7ZUz0pYsmYSCST7q5zeqAy3ERrb5NzbEqD9KntMmNWuArdIL1Hlx
mvz+swxr5ur95UualVf+4HxC5OrCTd/YfxP8S+fHE/btj2P9nyn01WU+NuyH3tOW
sqT2kXdgTPq6byto/RSa6XyQcQgwdk9HWp0QZqVdy7h0De7NvRRKIYWapUqL8lAT
n//QhPoUpAlWur4/OnD1VMt2nj4zcT3Oso4LzHLWKTAjm1Oor/MT3NLI1s3EMlT7
Hp9T8XcN6a8wRXXS+9ccNY87MVGKo2gY9eHSFmcCMH2CFqBtuE3y7gSv8FwrvqXF
WR0C7svE6cmqzKKdWnirkZucQckEtE4=
=Yt89
-----END PGP SIGNATURE-----
pgp8k17Cc2xQN.pgp
Description: PGP signature
--- End Message ---