Package: comix
Version: 4.0.4-3
Severity: normal
--- Please enter the report below this line. ---
Hi I got this error.
Traceback (most recent call last):
File "/usr/share/comix/src/thumbbar.py", line 126, in _load
_add_page_number(pixbuf, i)
File "/usr/share/comix/src/thumbbar.py", line 201, in _add_page_number
num_pixbuf = image.pil_to_pixbuf(im)
File "/usr/share/comix/src/image.py", line 172, in pil_to_pixbuf
imagestr = image.tostring()
File "build/bdist.linux-x86_64/egg/PIL/Image.py", line 699, in tostring
Exception: tostring() has been removed. Please call tobytes() instead.
This is because since a while PIL has deprecated tostring()
But I guess is it was used by comix only in seldomly used code path
because I didn't see the error before.
Locally I simply patched /usr/share/comix/src/image.py l172 as
imagestr = image.tobytes()
and it works fine.
--- System information. ---
Architecture: amd64
Kernel: Linux 4.7.0-1-amd64
Debian Release: stretch/sid
900 testing debian.revolsys.fr 500 unstable
debian.revolsys.fr 500 stable security.debian.org 500
stable files2.eid.belgium.be 500 stable
files.eid.belgium.be 500 stable dl.google.com 500 stable
debian.revolsys.fr 500 debian-stretch apt.dockerproject.org
1 experimental httpredir.debian.org
--- Package information. ---
Depends (Version) | Installed
================================-+-==============
gconf2 (>= 2.28.1-2) | 3.2.6-4
python (>= 2.4) | 2.7.11-2
python-gtk2 (>= 2.12) | 2.24.0-5.1
python-imaging (>= 1.1.5) | 3.3.1-1
Recommends (Version) | Installed
=========================-+-===========
mcomix | 1.2.1-1
Suggests (Version) | Installed
==============================-+-===========
unrar-free | OR unrar | 1:5.3.2-1
python (>= 2.5) | 2.7.11-2
OR python-sqllite2 |