Le 16/06/25 à 08:38, Philip Webb a tapoté :
can anyone offer advice ?The error which causes the build failure :
Traceback (most recent call last):As you can see, that's a python problem.
File "/usr/bin/g-ir-scanner", line 99, in <module>
from giscanner.utils import dll_dirs
File "/usr/lib64/gobject-introspection/giscanner/utils.py", line 385,
in <module> import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
The build log also indicates that is uses python3.12 in several places :
/usr/bin/python3.12Your emerge --info :
dev-lang/python: 3.12.7_p1::gentoo, 3.13.3_p2::gentoo
Why do you have two versions of python ?
Have you finished the python 3.13 migration ?
Why does it use by default python 3.12 instead of 3.13 ?
I suspect that if you set python 3.13 as the default python interpreter
on your system, the gtk build system will find the 'distutils' module
and the build will succeeds.
You should check that your system is up-to-date
and you should fully upgrade to python 3.13.
can anyone offer advice ?
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 99, in <module>
from giscanner.utils import dll_dirs
File "/usr/lib64/gobject-introspection/giscanner/utils.py", line 385,
in <module> import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
/usr/bin/python3.12
dev-lang/python: 3.12.7_p1::gentoo, 3.13.3_p2::gentoo
I've had a look round
& can't see how to correct the line above in 'emerge --info'.
'make.conf' has :
#USE_PYTHON="3.10 3.11"
#PYTHON_TARGETS="python3_11"
#PYTHON_SINGLE_TARGET="python3_11"
'package.use' has :
# for Python-3.12 : Portage shd apply these auto'ly
#*/* PYTHON_TARGETS: -* python3_12
#*/* PYTHON_SINGLE_TARGET: -* python3_12
Commenting those 6 lines should have left it to Portage to use 3.13
. What am I missing ?
Thanks for your very prompt reply (smile).
# emerge -pvuDU @world
# emerge --depclean --pretend
Le 16/06/25 à 03:49, Philip Webb a tapoté :
I've had a look roundIf the python 3.13 migration is done and your system up-to-date
& can't see how to correct the line above in 'emerge --info'.
'make.conf' has :
#USE_PYTHON="3.10 3.11"
#PYTHON_TARGETS="python3_11"
#PYTHON_SINGLE_TARGET="python3_11"
'package.use' has :
# for Python-3.12 : Portage shd apply these auto'ly
#*/* PYTHON_TARGETS: -* python3_12
#*/* PYTHON_SINGLE_TARGET: -* python3_12
Commenting those 6 lines should have left it to Portage to use 3.13
. What am I missing ?
Thanks for your very prompt reply (smile).
and python 3.12 is not required anymore on your system,then an emerge --depclean should remove it automatically
and switch the default interpreter to python 3.13.
What is the output of following commands ? --
# emerge -pvuDU @world
# emerge --depclean --pretend
Another way is to manually switch the default interpreter to 3.13,
but I would not recommend it, since emerge should do it automatically
if everything is solved and ok : see /etc/python-exec/python-exec.conf
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 50:01:12 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,314 |
Posted today: | 1 |