FS#73372 - [python-qrencode] Not compatible with python 3.10

Attached to Project: Community Packages
Opened by Alexandre ZANNI (noraj) - Saturday, 15 January 2022, 15:14 GMT
Last edited by Balló György (City-busz) - Sunday, 24 September 2023, 11:57 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:


Additional info:
* package version(s): 20.02.1-3

Steps to reproduce:

$ pacman -Syu qreator
$ qreator

<clic on Text>

Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/qreator/QreatorWindow.py", line 498, in on_qr_drawingarea_draw
self.surface = qr_code.encode(text,
File "/usr/lib/python3.10/site-packages/qreator/QRCode.py", line 60, in encode
qr_code = self._encode_to_cairo(text, current_color_fg,
File "/usr/lib/python3.10/site-packages/qreator/QRCode.py", line 70, in _encode_to_cairo
self._encode_to_pil(text, current_color_fg, previous_color_fg,
File "/usr/lib/python3.10/site-packages/qreator/QRCode.py", line 95, in _encode_to_pil
version, self.qrcode_size, self.image = qrencode.encode(text)
File "/usr/lib/python3.10/site-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

Similar issues in other projects:

- https://gitlab.gnome.org/GNOME/libxml2/-/issues/203
- https://stackoverflow.com/questions/70344884/pyaudio-write-systemerror-py-ssize-t-clean-macro-must-be-defined-for-format
- https://github.com/saltstack/salt/issues/61384
This task depends upon

Closed by  Balló György (City-busz)
Sunday, 24 September 2023, 11:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-qrencode 1.2-13
Comment by Alexandre ZANNI (noraj) - Saturday, 15 January 2022, 15:17 GMT Comment by Denilson Sá Maia (denilsonsa) - Monday, 22 August 2022, 10:42 GMT
This is probably a bug in python-qrencode package:

- https://stackoverflow.com/a/71019907
- https://archlinux.org/packages/community/x86_64/python-qrencode/
- https://github.com/Arachnid/pyqrencode/blob/master/qr_encode.c

(No upstream bug yet; and sorry, I can't investigate any further now.)
Comment by Alexandre ZANNI (noraj) - Monday, 22 August 2022, 17:44 GMT
qreator seems dead, no activities for 2 years on the project (no commit, not replies to issue)

python-qrencode seems dead, no activities for 4 years on the project (no commit, not replies to issue)

it looks like qrencode can be dropped from AL, also the only reverse dependency of python-qrencode is qreator and qreator as no reverse dependency

Loading...