You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems that PIL changed the way you generate images from strings:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/monkeysign/gtkui.py", line 306, in expose_event
self.draw_qrcode()
File "/usr/lib/python2.7/dist-packages/monkeysign/gtkui.py", line 317, in draw_qrcode
self.pixbuf = self.image_to_pixbuf(self.make_qrcode(self.active_key.fpr))
File "/usr/lib/python2.7/dist-packages/monkeysign/gtkui.py", line 342, in make_qrcode
version, width, image = _qrencode_scaled('OPENPGP4FPR:'+fingerprint,size,0,1,2,True)
File "/usr/lib/python2.7/dist-packages/qrencode/__init__.py", line 69, in encode_scaled
version, src_size, im = encode(data, version, level, hint, case_sensitive)
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.
this is with PIL 3.1.0.
The text was updated successfully, but these errors were encountered:
runejuhl
added a commit
to runejuhl/pyqrencode
that referenced
this issue
Jun 7, 2016
The issue is fixed in the branch referenced here. I haven't put any effort into trying to keep backwards compatibility, so there's that. If anyone can tell me which, if any, PIL versions that do not have the frombytes function, I'd be happy to update it.
this is a forward of https://bugs.debian.org/813602 that was reported against the monkeysign package.
it seems that PIL changed the way you generate images from strings:
this is with PIL 3.1.0.
The text was updated successfully, but these errors were encountered: