Public bug reported:
Generation of CR codes based on Texts failes with the following
Traceback
Traceback (most recent call last):
File "/usr/share/qreator/qreator/QreatorWindow.py", line 512, in
on_qr_drawingarea_draw
output_type=QRCodeOutput.CAIRO_SURFACE)
File "/usr/share/qreator/qreator/QRCode.py", line 61, in encode
border)
File "/usr/share/qreator/qreator/QRCode.py", line 70, in _encode_to_cairo
current_color_bg, previous_color_bg, border)
File "/usr/share/qreator/qreator/QRCode.py", line 94, in _encode_to_pil
version, self.qrcode_size, self.image = qrencode.encode(text)
File "/usr/lib/python2.7/dist-packages/qrencode/__init__.py", line 47, in
encode
im = Image.fromstring('L', (size, size), data)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2063, in fromstring
"Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.
Traceback (most recent call last):
File "/usr/share/qreator/qreator/QreatorWindow.py", line 512, in
on_qr_drawingarea_draw
output_type=QRCodeOutput.CAIRO_SURFACE)
File "/usr/share/qreator/qreator/QRCode.py", line 61, in encode
border)
File "/usr/share/qreator/qreator/QRCode.py", line 70, in _encode_to_cairo
current_color_bg, previous_color_bg, border)
File "/usr/share/qreator/qreator/QRCode.py", line 94, in _encode_to_pil
version, self.qrcode_size, self.image = qrencode.encode(text)
File "/usr/lib/python2.7/dist-packages/qrencode/__init__.py", line 47, in
encode
im = Image.fromstring('L', (size, size), data)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2063, in fromstring
"Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.
** Affects: qreator (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1711819
Title:
fromstring() has been removed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qreator/+bug/1711819/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs