It seems that media-gfx/gimp-2.99.6 doesn't install any python modules necessary to run python plugins. Namely than run it produces lots of error messages like next: -------------- Traceback (most recent call last): File "/usr/lib64/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py", line 18, in <module> import gi ModuleNotFoundError: No module named 'gi' GIMP-WARNING: gimp: gimp_wire_read(): error -------------- (See full output in attachment) My USE flags: USE="alsa doc heif javascript jpeg2k lua mng openexr postscript udev vala vector-icons webp wmf xpm -aalib (-aqua) -gnome (-python) -test -unwind" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="luajit" PYTHON_SINGLE_TARGET="python3_8 -python3_10 -python3_9" Reproducible: Always Steps to Reproduce: 1. install gimp with USE="python" 2. Try to run it Actual Results: Bunch of errors in python plugins, plugins don't work. Expected Results: No errors; plugins work.
Created attachment 717660 [details] GIMP output
Created attachment 717663 [details] emerge --info media-gfx/gimp
Created attachment 717666 [details] equery f gimp
(In reply to Fat-Zer from comment #0) > My USE flags: > > USE="alsa doc heif javascript jpeg2k lua mng openexr postscript udev vala > vector-icons webp wmf xpm -aalib (-aqua) -gnome (-python) -test -unwind" > CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="luajit" > PYTHON_SINGLE_TARGET="python3_8 -python3_10 -python3_9" That's because it's forced off (-python), so it's not actually enabled. This is more of an extension of the mask for gimp2.4, it works fine if you remove the mask (i.e. add 'media-gfx/gimp -python' to /etc/portage/profile/package.use.mask)
> Expected Results: > ... plugins work Honestly I never tested gimp python3 plugin functionality because I don't know any python3 ported plugin. But the problem is for gimp examples of plugins. It seems required module should be provided by dev-python/pygobject package but I need to check it.
The gimp was build without USE="python" as I see from `emerge --info media-gfx/gimp` > media-gfx/gimp-2.99.6::gentoo was built with the following: > USE="... (-python) ..." ... PYTHON_SINGLE_TARGET="python3_8 -python3_10 -python3_9" Therefore `dev-python/pygobject` (provide `gi`) was not installed as dependency to provide python3 plugin support. Is this package is presence in system?
(In reply to Sergey Torokhov from comment #6) > The gimp was build without USE="python" as I see from `emerge --info > media-gfx/gimp` oh sorry... it's a bit embracing... I've totally overlooked the mask of the flag >_<. Feel free to mark the bug report as INVALID... On the other hand the summary might be changed that gimp installs lots of python modules despite python support being disabled.
Thank you for responce. I just initially will check installation more carefully as I have gimp-2.99.6[-python] and have no error messages on launch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e1e591cc719b26284fc89472c4d4282b89ed51 commit 56e1e591cc719b26284fc89472c4d4282b89ed51 Author: Sergey Torokhov <torokhov-s-a@yandex.ru> AuthorDate: 2021-06-24 19:58:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-24 22:00:34 +0000 package.mask: drop mask python for media-gfx/gimp:0/3 USE="python" was droppped for media-gfx/gimp:0/2 as dev-python/pygtk package too that was the reason of masking. media-gfx[python]:0/3 doesn't depend of dev-python/pygtk. Closes: https://bugs.gentoo.org/797583 Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/21416 Signed-off-by: Sam James <sam@gentoo.org> profiles/base/package.use.mask | 4 ---- 1 file changed, 4 deletions(-)
I hope the unmasking of flag resolves the issue. Anyway the masking seems isn't required anymore.