I can confirm that python3-qrencode from jammy-proposed has fixed the bug for me.
Test done: Install python3-qrencode on a jammy installation. create the python file with content from test plan. execute the python script confirm the issue is seen Add jammy-proposed to apt sources update python3-qrencode from jammy-proposed execute the python script again cofirm the QR code is generated and displayed Test result: the issue with python3-qrencode has been fixed. Package tested: $ apt-cache policy python3-qrencode python3-qrencode: Installed: 1.2-5ubuntu0.1 Candidate: 1.2-5ubuntu0.1 Version table: *** 1.2-5ubuntu0.1 500 500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages 100 /var/lib/dpkg/status 1.2-5build6 500 500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages ** Tags removed: verification-needed verification-needed-jammy ** Tags added: verification-done verification-done-jammy -- 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: [SRU] 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