Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915117

Summary: dev-util/intel-graphics-compiler-1.0.15136.4: ModuleNotFoundError: No module named 'mako'
Product: Gentoo Linux Reporter: Sergey 'L29Ah' Alirzaev <zl29ah>
Component: Current packagesAssignee: Jan Henke <gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: conikost, kernelpanic, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info

Description Sergey 'L29Ah' Alirzaev 2023-10-03 14:35:32 UTC
Created attachment 872103 [details]
build log

Traceback (most recent call last):
  File "/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.15136.4/work/intel-graphics-compiler-igc-1.0.15136.4/IGC/GenISAIntrinsics/generator/generate_intrinsic_files.py", line 11, in <module>
    from Intrinsic_utils import file_path, dir_path
  File "/var/tmp/portage/dev-util/intel-graphics-compiler-1.0.15136.4/work/intel-graphics-compiler-igc-1.0.15136.4/IGC/GenISAIntrinsics/generator/Intrinsic_utils.py", line 14, in <module>
    from mako.template import Template
ModuleNotFoundError: No module named 'mako'


[I] dev-python/mako
     Available versions:  1.2.4^t {doc test PYTHON_TARGETS="pypy3 python3_10 python3_11 python3_12"}
     Installed versions:  1.2.4^t(08:15:54 2023-05-29)(-doc -test PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12")


∞ eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.11
  [2]   python3.12 (fallback)
  [3]   python3.10 (fallback)
Comment 1 Sergey 'L29Ah' Alirzaev 2023-10-03 14:35:46 UTC
Created attachment 872104 [details]
emerge --info
Comment 2 Michelangelo Scopelliti 2023-10-03 17:55:12 UTC
I have the same problem.

AFAICT, cmake recognizes the higher version of python as the default one; building mako for python 3.12 allows to build the package.

It is possible the ebuild needs adding an explicit -DPYTHON_EXECUTABLE pointing to the right version.
Comment 3 Conrad Kostecki gentoo-dev 2023-10-04 11:56:47 UTC
(In reply to Michelangelo Scopelliti from comment #2)
> I have the same problem.
> 
> AFAICT, cmake recognizes the higher version of python as the default one;
> building mako for python 3.12 allows to build the package.
> 
> It is possible the ebuild needs adding an explicit -DPYTHON_EXECUTABLE
> pointing to the right version.

This won't be enough, but I will commit a proper solution. I see the problem here, thanks!
Comment 4 Larry the Git Cow gentoo-dev 2023-10-04 14:42:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b730475a81fb4efd79dfb6ed7348af4ee9e5c25

commit 7b730475a81fb4efd79dfb6ed7348af4ee9e5c25
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2023-10-04 12:02:26 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2023-10-04 14:41:30 +0000

    dev-util/intel-graphics-compiler: add missing deps for mako
    
    Closes: https://bugs.gentoo.org/915117
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 ...15136.4.ebuild => intel-graphics-compiler-1.0.15136.4-r1.ebuild} | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 5 Sergey 'L29Ah' Alirzaev 2023-10-04 14:43:42 UTC
What's the reason behind the revbump?
Comment 6 Conrad Kostecki gentoo-dev 2023-10-04 14:44:39 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #5)
> What's the reason behind the revbump?

Deps changed.
Comment 7 Sergey 'L29Ah' Alirzaev 2023-10-04 14:46:50 UTC
(In reply to Conrad Kostecki from comment #6)
> (In reply to Sergey 'L29Ah' Alirzaev from comment #5)
> > What's the reason behind the revbump?
> 
> Deps changed.

It doesn't make any sense to rebuild a package because its build-time dependencies that don't get incorportated into the package have changed, does it?
Comment 8 Conrad Kostecki gentoo-dev 2023-10-04 16:01:00 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #7)
> (In reply to Conrad Kostecki from comment #6)
> > (In reply to Sergey 'L29Ah' Alirzaev from comment #5)
> > > What's the reason behind the revbump?
> > 
> > Deps changed.
> 
> It doesn't make any sense to rebuild a package because its build-time
> dependencies that don't get incorportated into the package have changed,
> does it?

From this perspective, you are right. But people, who have already this version installed, wouldn't get the updated deps in metadata written.
Comment 9 Sergey 'L29Ah' Alirzaev 2023-10-04 16:36:35 UTC
(In reply to Conrad Kostecki from comment #8)
> (In reply to Sergey 'L29Ah' Alirzaev from comment #7)
> > It doesn't make any sense to rebuild a package because its build-time
> > dependencies that don't get incorportated into the package have changed,
> > does it?
> 
> From this perspective, you are right. But people, who have already this
> version installed, wouldn't get the updated deps in metadata written.

And does it matter? It's not like the upgrade or removal of the dependencies affect the installed package in any way.