Hi,

On Mon, 10 Jul 2023 22:08:46 +0200 Sebastien KALT <sk...@throka.org> wrote:
Package: mcomix
Version: 2.1.0-2
Severity: grave
Justification: renders package unusable

        Same issue here (Debian testing up to date).

        The issue is here :
/usr/lib/python3/dist-packages/mcomix/run.py:
<code>
 if PIL.__version__ < '6.0.0':
</code>

I guess that issue root cause is due to "<", who is probably not the good way to compare strings under python. Python look like understand that "6.0" is after "10.0", due to comparison-only between 6 and 1...

        I'm not a python developer, so here a quick and dirty patch:

# diff /usr/lib/python3/dist-packages/mcomix/run.py.bak /usr/lib/python3/dist-packages/mcomix/run.py
143c143
<         if PIL.__version__ < '6.0.0':
---
>         if PIL.__version__ < '10.0.0':

        With this modification, mcomix work fine.

Real python developers, or packagers should provide a better and more python-style than me ! :)

        Best regards,
                                                Olivier

Reply via email to