Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797583 - media-gfx/gimp-2.99.6: doesn't install any python modules
Summary: media-gfx/gimp-2.99.6: doesn't install any python modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-06-22 13:59 UTC by Fat-Zer
Modified: 2021-06-25 04:59 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
GIMP output (gimp.output,3.65 KB, text/plain)
2021-06-22 14:00 UTC, Fat-Zer
Details
emerge --info media-gfx/gimp (emerge.info,11.22 KB, application/x-info)
2021-06-22 14:01 UTC, Fat-Zer
Details
equery f gimp (equery-f-gimp,686.64 KB, text/plain)
2021-06-22 14:03 UTC, Fat-Zer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fat-Zer 2021-06-22 13:59:21 UTC
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.
Comment 1 Fat-Zer 2021-06-22 14:00:09 UTC
Created attachment 717660 [details]
GIMP output
Comment 2 Fat-Zer 2021-06-22 14:01:13 UTC
Created attachment 717663 [details]
emerge --info media-gfx/gimp
Comment 3 Fat-Zer 2021-06-22 14:03:45 UTC
Created attachment 717666 [details]
equery f gimp
Comment 4 Ionen Wolkens gentoo-dev 2021-06-22 14:16:47 UTC
(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)
Comment 5 Sergey Torokhov 2021-06-22 15:37:11 UTC
> 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.
Comment 6 Sergey Torokhov 2021-06-22 18:17:44 UTC
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?
Comment 7 Fat-Zer 2021-06-22 22:45:16 UTC
(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.
Comment 8 Sergey Torokhov 2021-06-23 05:30:17 UTC
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.
Comment 9 Larry the Git Cow gentoo-dev 2021-06-24 22:00:41 UTC
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(-)
Comment 10 Sergey Torokhov 2021-06-25 04:59:01 UTC
I hope the unmasking of flag resolves the issue. Anyway the masking seems isn't required anymore.