Your message dated Mon, 13 Mar 2023 04:48:58 +0000
with message-id <e1pba7g-00bprm...@fasolo.debian.org>
and subject line Bug#1032287: fixed in python-qrencode 1.2-5.1
has caused the Debian Bug report #1032287,
regarding SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
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.)
--
1032287: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032287
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-qrencode
Version: 1.2-5+b8
Severity: grave
X-Debbugs-Cc: debian-pyt...@lists.debian.org
It looks like the qrencode Python library is currently unusable in
Debian bookworm. Here's a simple example:
anarcat@angela:paperbackup$ python3 -c 'import qrencode ; version, size, data =
qrencode.encode(b"test")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/qrencode/__init__.py", line 47, in encode
version, size, data = _encode(data, version, level, hint, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
anarcat@angela:paperbackup[1]$
According to a casual search on the web, it looks like the extension
needs to be recompiled / patched for Python 3.10:
https://stackoverflow.com/a/71019907
Quote:
> On 3.10 any module(s) that use the # variant when parsing arguments
> need to have a #define PY_SSIZE_T_CLEAN before including Python.h.
So this could be as simple as:
--- python-qrencode-1.2.orig/qr_encode.c
+++ python-qrencode-1.2/qr_encode.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <stdlib.h>
#include <qrencode.h>
Will test this out soon.
-- System Information:
Debian Release: bookworm/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (1,
'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-5-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-qrencode depends on:
ii libc6 2.36-8
ii libqrencode4 4.1.1-1
ii python3 3.11.2-1
python3-qrencode recommends no packages.
python3-qrencode suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: python-qrencode
Source-Version: 1.2-5.1
Done: Antoine Beaupré <anar...@debian.org>
We believe that the bug you reported is fixed in the latest version of
python-qrencode, 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 1032...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Antoine Beaupré <anar...@debian.org> (supplier of updated python-qrencode
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: SHA256
Format: 1.8
Date: Thu, 02 Mar 2023 22:19:32 -0500
Source: python-qrencode
Architecture: source
Version: 1.2-5.1
Distribution: unstable
Urgency: medium
Maintainer: Hugo Lefeuvre <h...@debian.org>
Changed-By: Antoine Beaupré <anar...@debian.org>
Closes: 1032287
Changes:
python-qrencode (1.2-5.1) unstable; urgency=medium
.
* Non-maintainer upload.
* fix crash in Python 3.10 (Closes: #1032287)
Checksums-Sha1:
108f1afd2b58feb39550cc4c47d780f23f4437cd 1623 python-qrencode_1.2-5.1.dsc
718db458d1c01d3adef853d7d88d5194640fceb3 2988
python-qrencode_1.2-5.1.debian.tar.xz
e1d52cd47b41d97946ed5d5ad6921362a2acd628 7525
python-qrencode_1.2-5.1_amd64.buildinfo
Checksums-Sha256:
bb78abc906f8dbf81ef106c697e006d441982e189c9d41099a4de0c61f728f00 1623
python-qrencode_1.2-5.1.dsc
ab27bd55fe36640e0b0018497383abce871e048bc5205cbc59b377c360a3e5c2 2988
python-qrencode_1.2-5.1.debian.tar.xz
e7bad4420d73f6cc19c706588ca8f6d8049409c8de2341936a04aef246d8c86f 7525
python-qrencode_1.2-5.1_amd64.buildinfo
Files:
b0bbf1b5978d505f87634815936bab37 1623 python optional
python-qrencode_1.2-5.1.dsc
7769ded2f52343f573d2101ff280b9f2 2988 python optional
python-qrencode_1.2-5.1.debian.tar.xz
276347237c57b4ea9034b6551f21f6c1 7525 python optional
python-qrencode_1.2-5.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEexZCBNCWcjsBljWrPqHd3bJh2XsFAmQBcgsACgkQPqHd3bJh
2XtpkAf/YXx/drdTLaSbcldpbNnJEqQ5rkaOuWL2Z1SguCdz8Sq/BEPI0vEuWNZz
qjeGXJtzusYjYEgwfvQVx/6ig5pemNtR9LH3y3ljxODaLldebigAiM83l+E/LKw0
rlxM3kX+mkB5KDf8EKzU/JDUSVeYywipeyfpzA6upU5+O3/DGJmtYrI0yvuNmPb3
XrktRTwvUZGL0NX3ZJVyp7+TM63vS4AJL2KM5K4BHE0bguoG8oP1xx3sn6JW0FRa
DnW649QtSMQfxUgAYE67nqGxEVI6MeA0iH9MnqTvjgm6Jgd/sDYRNC+5fkuGsyzp
6cF1kh7A1+cnkvzc4b49OwABW50Twg==
=7yDn
-----END PGP SIGNATURE-----
--- End Message ---