fromstring() has been removed

Bug #1711819 reported by grisu48
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qreator (Ubuntu)
New
Undecided
Unassigned

Bug Description

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.