2024-03-06 19:08:34 |
Arrigo Marchiori |
bug |
|
|
added bug |
2024-03-06 19:08:34 |
Arrigo Marchiori |
attachment added |
|
Very simple script that shows the problem https://bugs.launchpad.net/bugs/2056361/+attachment/5753434/+files/python3-qrencode.py |
|
2024-03-07 07:28:01 |
Sudip Mukherjee |
bug |
|
|
added subscriber Sudip Mukherjee |
2024-03-07 16:06:36 |
Sudip Mukherjee |
python-qrencode (Ubuntu): status |
New |
Confirmed |
|
2024-03-08 09:59:21 |
Graham Inggs |
nominated for series |
|
Ubuntu Jammy |
|
2024-03-08 09:59:21 |
Graham Inggs |
bug task added |
|
python-qrencode (Ubuntu Jammy) |
|
2024-03-08 10:01:56 |
Sudip Mukherjee |
python-qrencode (Ubuntu Jammy): status |
New |
Confirmed |
|
2024-03-08 10:01:59 |
Sudip Mukherjee |
python-qrencode (Ubuntu): status |
Confirmed |
Fix Released |
|
2024-03-08 10:02:02 |
Sudip Mukherjee |
python-qrencode (Ubuntu Jammy): status |
Confirmed |
In Progress |
|
2024-03-08 10:02:05 |
Sudip Mukherjee |
python-qrencode (Ubuntu Jammy): assignee |
|
Sudip Mukherjee (sudipmuk) |
|
2024-03-08 10:02:42 |
Sudip Mukherjee |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032287 |
|
2024-03-08 10:02:42 |
Sudip Mukherjee |
bug task added |
|
python-qrencode (Debian) |
|
2024-03-08 11:09:33 |
Bug Watch Updater |
python-qrencode (Debian): status |
Unknown |
Fix Released |
|
2024-03-13 11:20:03 |
Sudip Mukherjee |
summary |
python3-qrencode fails with SystemError about PY_SSIZE_T_CLEAN macro |
[SRU] python3-qrencode fails with SystemError about PY_SSIZE_T_CLEAN macro |
|
2024-03-13 11:20:59 |
Sudip Mukherjee |
description |
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 |
[ Impact ]
python3-qrencode is completely unusable as it will crash with the following error whenever any user tries to use to generate a QR code:
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
[ Test Plan ]
Add the following content in a python file:
import qrencode
(version, size, im) = qrencode.encode("This is working")
im.show()
execute the python script. With the fixed package it will display the QR code.
[ Where problems could occur ]
It is only defining 'PY_SSIZE_T_CLEAN' before including Python.h as is suggested by upstream Python docs. There might be some adverse affect for this but the package is already unusable.
[ Other Info ]
The same fix from Debian is in Mantic.
Noble is also affected but I can not mark the bug status as confirmed. The NMU fix was lost with the update to 1.2-6. But I have now done a QA upload in Debian with the fix and also added an autopkgtest which has the same python script as the test plan. So, when 1.2-7 syncs, Noble will be fixed.
[ Original Bug Description ]
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 |
|
2024-03-13 11:21:23 |
Sudip Mukherjee |
attachment added |
|
python-qrencode.debdiff https://bugs.launchpad.net/ubuntu/jammy/+source/python-qrencode/+bug/2056361/+attachment/5755526/+files/python-qrencode.debdiff |
|
2024-03-13 11:22:01 |
Sudip Mukherjee |
python-qrencode (Ubuntu Jammy): status |
In Progress |
Confirmed |
|
2024-03-13 11:22:04 |
Sudip Mukherjee |
python-qrencode (Ubuntu Jammy): assignee |
Sudip Mukherjee (sudipmuk) |
|
|
2024-03-13 11:22:13 |
Sudip Mukherjee |
bug |
|
|
added subscriber Ubuntu Sponsors |
2024-03-27 11:06:21 |
Dave Jones |
removed subscriber Ubuntu Sponsors |
|
|
|
2024-04-10 13:05:12 |
Robie Basak |
python-qrencode (Ubuntu Jammy): status |
Confirmed |
Fix Committed |
|
2024-04-10 13:05:14 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-04-10 13:05:16 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2024-04-10 13:05:18 |
Robie Basak |
tags |
|
verification-needed verification-needed-jammy |
|
2024-05-04 19:05:03 |
Sudip Mukherjee |
tags |
verification-needed verification-needed-jammy |
verification-done verification-done-jammy |
|
2024-06-05 09:01:56 |
Robie Basak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2024-06-05 09:12:00 |
Launchpad Janitor |
python-qrencode (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|