Menu

#116 python-pillow version 6.x breaks mcomix

SVN
closed-fixed
nobody
None
5
2023-08-04
2019-04-05
Timo Thurow
No

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>

Discussion

  • Ark

    Ark - 2019-04-06

    Thank you very much for your help. I fixed it in [486f02eef164df451a72598ce5989a1b37b49c60].

     

    Related

    Commit: [486f02]

  • Ark

    Ark - 2019-04-06
    • status: open --> closed-fixed
     
  • multiSnow

    multiSnow - 2019-04-11

    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.

     
  • Ark

    Ark - 2019-04-13
    • status: closed-fixed --> open
     
  • Ark

    Ark - 2019-04-13

    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.

     
  • forkirara

    forkirara - 2019-10-18

    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

     
  • FeRD

    FeRD - 2023-08-04

    This is definitely fixed, as current MComix requires both Python 3 and Pillow 6.

     
  • Oddegamra

    Oddegamra - 2023-08-04
    • status: open --> closed-fixed
     

Log in to post a comment.