Public bug reported: Python3 module qrencode does not allow generating QR codes using function encode().
The attached very simple script dies as follows: $ ./python3-qrencode.py Traceback (most recent call last): File "/home/arrigo/temp/./python3-qrencode.py", line 5, in <module> qrencode.encode("Hello world") 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 Package: python3-qrencode version 1.2-5build6, architecture amd64 on Ubuntu 22.04 ** Affects: python-qrencode (Ubuntu) Importance: Undecided Status: New ** Attachment added: "Very simple script that shows the problem" https://bugs.launchpad.net/bugs/2056361/+attachment/5753434/+files/python3-qrencode.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056361 Title: python3-qrencode fails with SystemError about PY_SSIZE_T_CLEAN macro To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/2056361/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs