In run.py the assert "assert PIL.Image.VERSION >= '1.1.5' " at line 205 fails since the "VERSION" attribute is deprecated and was replaced by version.
Source: https://github.com/python-pillow/Pillow/blob/master/docs/deprecations.rst#version-constant
Console Output:
Traceback (most recent call last):
File "/usr/bin/mcomix", line 11, in <module>
load_entry_point('mcomix==1.2.1', 'console_scripts', 'mcomix')()
File "/usr/lib/python2.7/site-packages/mcomix/run.py", line 206, in run
assert PIL.Image.VERSION >= '1.1.5'
AttributeError: 'module' object has no attribute 'VERSION'</module>
Thank you very much for your help. I fixed it in [486f02eef164df451a72598ce5989a1b37b49c60].
Related
Commit: [486f02]
PIL.Image.VERSION
is not the only incompatibility in Pillow 6.x. The behavior of_getexif
is alse changed and broken in png file with exif data.See https://github.com/multiSnow/mcomix3/issues/76 for more infomation.
Thanks for the info. Also, thanks for all the other tickets you opened recently. I will have a look into them when I find the time to do so.
After I changed run.py I have another problem:
Traceback (most recent call last):
File "/usr/bin/mcomix", line 11, in <module>
load_entry_point('mcomix==1.2.1', 'console_scripts', 'mcomix')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python2.7/dist-packages/mcomix/run.py", line 207
except AttributeError:
^
SyntaxError: invalid syntax</module>
I have Ubuntu 18.04, Pillow 5.1.0-1, Python 2.7.15
Can you help me?
Thanks
This is definitely fixed, as current MComix requires both Python 3 and Pillow 6.