Activity log for bug #1587249

Date Who What changed Old value New value Message
2016-05-31 05:41:15 Muelli bug added bug
2016-06-05 17:27:45 Launchpad Janitor python-qrencode (Ubuntu): status New Confirmed
2016-06-05 17:27:47 Felix Eckhofer bug added subscriber Felix Eckhofer
2016-06-06 16:02:57 Alberto Salvia Novella python-qrencode (Ubuntu): importance Undecided Medium
2017-01-15 13:38:23 Chow Loong Jin python-qrencode (Ubuntu): status Confirmed Fix Released
2017-01-15 13:38:46 Chow Loong Jin nominated for series Ubuntu Yakkety
2017-01-15 13:38:46 Chow Loong Jin bug task added python-qrencode (Ubuntu Yakkety)
2017-01-15 13:38:57 Chow Loong Jin python-qrencode (Ubuntu Yakkety): assignee Chow Loong Jin (hyperair)
2017-01-15 14:24:13 Chow Loong Jin python-qrencode (Ubuntu Yakkety): status New Confirmed
2017-01-15 14:25:09 Chow Loong Jin attachment added debdiff for yakkety SRU https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+attachment/4804699/+files/debdiff.patch
2017-01-15 14:25:11 Chow Loong Jin attachment added debdiff for yakkety SRU https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+attachment/4804700/+files/debdiff.patch
2017-01-15 14:25:23 Chow Loong Jin attachment removed debdiff for yakkety SRU https://bugs.launchpad.net/ubuntu/+source/python-qrencode/+bug/1587249/+attachment/4804700/+files/debdiff.patch
2017-01-15 23:29:26 Chow Loong Jin description In [5]: qrencode.encode_scaled("foo",1) --------------------------------------------------------------------------- Exception Traceback (most recent call last) <ipython-input-5-be07c22beab2> in <module>() ----> 1 qrencode.encode_scaled("foo",1) /usr/lib/python2.7/dist-packages/qrencode/__init__.pyc in encode_scaled(data, size, version, level, hint, case_sensitive) 67 the QR-code. 68 """ ---> 69 version, src_size, im = encode(data, version, level, hint, case_sensitive) 70 if size < src_size: 71 size = src_size /usr/lib/python2.7/dist-packages/qrencode/__init__.pyc in encode(data, version, level, hint, case_sensitive) 45 version, size, data = _encode(data, version, level, hint, False) 46 ---> 47 im = Image.fromstring('L', (size, size), data) 48 return (version, size, im) 49 /usr/lib/python2.7/dist-packages/PIL/Image.pyc in fromstring(*args, **kw) 2061 def fromstring(*args, **kw): 2062 raise Exception("fromstring() has been removed. " + -> 2063 "Please call frombytes() instead.") 2064 2065 Exception: fromstring() has been removed. Please call frombytes() instead. In [6]: ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: python-qrencode 1.01-5 Uname: Linux 4.6.0-040600-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CurrentDesktop: GNOME Date: Tue May 31 07:40:21 2016 InstallationDate: Installed on 2015-12-02 (180 days ago) InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 (20151027) SourcePackage: python-qrencode UpgradeStatus: No upgrade log present (probably fresh install) [Impact] python-qrencode is currently broken for all users in yakkety due to the removal of Image.fromstring from pillow. The fix is to replace all calls to Image.fromstring with Image.frombytes. [Test Case] Run the following script and see if it ends in an exception: ``` import qrencode qrencode.encode_scaled("foo", 1) ``` [Regression Potential] It's unlikely that python-qrencode can regress any further, because in its current state, both exported python methods are completely broken and will throw an exception unconditionally with the pillow version in Yakkety. [Other Info] rdeps may also be broken if they use Image.tostring on the output. So far, the only known rdep that is broken is qreator. Below is the stack trace and exception thrown by the broken version of qrencode. In [5]: qrencode.encode_scaled("foo",1) --------------------------------------------------------------------------- Exception Traceback (most recent call last) <ipython-input-5-be07c22beab2> in <module>() ----> 1 qrencode.encode_scaled("foo",1) /usr/lib/python2.7/dist-packages/qrencode/__init__.pyc in encode_scaled(data, size, version, level, hint, case_sensitive)      67 the QR-code.      68 """ ---> 69 version, src_size, im = encode(data, version, level, hint, case_sensitive)      70 if size < src_size:      71 size = src_size /usr/lib/python2.7/dist-packages/qrencode/__init__.pyc in encode(data, version, level, hint, case_sensitive)      45 version, size, data = _encode(data, version, level, hint, False)      46 ---> 47 im = Image.fromstring('L', (size, size), data)      48 return (version, size, im)      49 /usr/lib/python2.7/dist-packages/PIL/Image.pyc in fromstring(*args, **kw)    2061 def fromstring(*args, **kw):    2062 raise Exception("fromstring() has been removed. " + -> 2063 "Please call frombytes() instead.")    2064    2065 Exception: fromstring() has been removed. Please call frombytes() instead. In [6]: ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: python-qrencode 1.01-5 Uname: Linux 4.6.0-040600-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CurrentDesktop: GNOME Date: Tue May 31 07:40:21 2016 InstallationDate: Installed on 2015-12-02 (180 days ago) InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 (20151027) SourcePackage: python-qrencode UpgradeStatus: No upgrade log present (probably fresh install)
2017-01-15 23:30:52 Chow Loong Jin bug added subscriber Ubuntu Stable Release Updates Team
2017-01-19 18:48:22 Brian Murray python-qrencode (Ubuntu Yakkety): status Confirmed Fix Committed
2017-01-19 18:48:25 Brian Murray bug added subscriber SRU Verification
2017-01-19 18:48:30 Brian Murray tags amd64 apport-bug third-party-packages xenial amd64 apport-bug third-party-packages verification-needed xenial
2017-01-20 01:32:00 Chow Loong Jin tags amd64 apport-bug third-party-packages verification-needed xenial amd64 apport-bug third-party-packages verification-done xenial
2017-01-30 18:23:35 Andy Whitcroft removed subscriber Ubuntu Stable Release Updates Team
2017-01-30 18:33:37 Launchpad Janitor python-qrencode (Ubuntu Yakkety): status Fix Committed Fix Released
2017-09-25 11:55:11 Byte Commander bug task added qreator
2017-09-25 11:55:52 Byte Commander bug added subscriber Byte Commander
2017-09-25 13:40:05 David Planella qreator: status New Confirmed
2017-09-25 13:40:12 David Planella qreator: importance Undecided Medium
2017-09-25 13:40:40 David Planella bug task added qreator (Ubuntu)
2017-09-25 13:41:00 David Planella qreator (Ubuntu Yakkety): status New Confirmed
2017-09-25 16:33:36 Ubuntu Foundations Team Bug Bot tags amd64 apport-bug third-party-packages verification-done xenial amd64 apport-bug patch third-party-packages verification-done xenial
2017-12-04 12:05:00 Launchpad Janitor qreator (Ubuntu): status New Confirmed
2017-12-14 00:26:49 Chow Loong Jin qreator (Ubuntu): status Confirmed Fix Released
2017-12-14 00:31:56 Chow Loong Jin qreator (Ubuntu Yakkety): status Confirmed Won't Fix
2017-12-14 00:32:18 Chow Loong Jin nominated for series Ubuntu Xenial
2017-12-14 00:32:18 Chow Loong Jin bug task added python-qrencode (Ubuntu Xenial)
2017-12-14 00:32:18 Chow Loong Jin bug task added qreator (Ubuntu Xenial)
2017-12-14 00:40:39 Chow Loong Jin marked as duplicate 1573577