Bug#928796: NotImplementedError: tostring() has been removed. Please call tobytes() instead.
Package: qtqr
Version: 1.4~bzr21-1
Severity: important
Dear Maintainer,
Start qtqr and then upload a qr code image file (in my case .png file) and
click decode.
Nothing happens and an error message is printed on the terminal.
$ qtqr
Traceback (most recent call last):
File "/usr/bin/qtqr", line 540, in decodeFile
if qr.decode():
File "/usr/lib/python2.7/dist-packages/qrtools.py", line 181, in decode
raw = pil.tostring()
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 697, in tostring
"Please call tobytes() instead.")
NotImplementedError: tostring() has been removed. Please call tobytes()
instead.
$
-- System Information:
Debian Release: 9.9
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-9-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN.utf8, LC_CTYPE=en_IN.utf8 (charmap=UTF-8), LANGUAGE=en_IN:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages qtqr depends on:
ii python 2.7.13-2
ii python-qrtools 1.4~bzr21-1
ii python-qt4 4.11.4+dfsg-2+b1
qtqr recommends no packages.
qtqr suggests no packages.
-- no debconf information
Reply to: