Created attachment 573450 [details, diff] Replace PIL.Image.VERSION with PIL.__version__ After upgrading to dev-python/pillow-6.0.0::gentoo mcomix stopped working with the error: ----8<---- Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/mcomix", line 11, in <module> load_entry_point('mcomix==1.2.1', 'console_scripts', 'mcomix')() File "/usr/lib64/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' ---->8---- Upstream fixed this recently with 486f02eef164df451a72598ce5989a1b37b49c60 (titled: Replace PIL.Image.VERSION with PIL.__version__) The patch applies on top of media-gfx/mcomix-1.2.1 (as present in the Gentoo portage tree) cleanly. The patch is attached here. Thank you sooooo much for your hard work.
Please note that the patch fixes the problem *without* breaking older version of dev-python/pillow (<dev-python/pillow-6). So users who still use older version of dev-python/pillow will *not* get affected with this patch. Thanks.
Created attachment 573762 [details, diff] Fixes to run mcomix with Pillow 6 I found that I also needed to set USE_PIL=True to avoid getting an "assert name not in supported_formats" error. Upstream appears to have some more comprehensive changes, but this patch gets things working for the time being.
Adam's patch works for me.
Fixed in media-gfx/mcomix-1.2.1_p20190406 from my overlay: https://github.com/stefantalpalaru/gentoo-overlay
(In reply to زياد بن عبدالعزيز الباتلي from comment #0) > Upstream fixed this recently with 486f02eef164df451a72598ce5989a1b37b49c60 > (titled: Replace PIL.Image.VERSION with PIL.__version__) > > The patch applies on top of media-gfx/mcomix-1.2.1 (as present in the Gentoo > portage tree) cleanly. > > The patch is attached here. > > Thank you sooooo much for your hard work. This patch worked for me. I have not noticed any errors like those described by Adam Jones from comment #2 as such I haven't tried his patch.
It seems this package is broken in stable - would it make sense to remove 1.2.1 then and drop it back to ~arch, or is 1.3.0_pre20200206 already eligible for early stabilisation?
Thanks, I forgot to update this bug when I bumped mcomix. Considering current stable is broken and I did not get bug reports so far on 1.3.0_pre20200206, I think we should go with early stabilization (and also get rid of pygtk dependency). I filled bug #711584 for stabling, marking this one as fixed for the issue itself with version bump 1.3.0_pre20200206