methods tostring() and fromstring() deprecated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
New
|
Undecided
|
Unassigned |
Bug Description
starting phatch in ubuntu16 causes a pythontraceback see below:
benoitj@motte:~$ phatch
/usr/lib/
return _core_.
Traceback (most recent call last):
File "/usr/lib/
lambda event: event.callable(
File "/usr/share/
frame = Frame(self.
File "/usr/share/
frame.
File "/usr/share/
self.tree = Tree(self, -1, style=wx.
File "/usr/share/
set_dirty = parent.set_dirty,
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
wx_image = pil_wxImage(
File "/usr/share/
image.
File "/usr/lib/
"Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.
the problem is easys to fix:
replace fromstring() in frombytes() and tostring() in tobytes() in the file usr/share/
Thanks to Johannes Benoit, here is the patch file to fix the bug.
To apply the patch use the commande : phatch/ phatch/ lib/pyWx/ wxPil.py wxPil.py.diff
sudo patch -u /usr/share/