Gentoo Archives: gentoo-user

From: "Valmor F. de Almeida" <val.gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: ERROR: dev-lang/python-3.9.2::gentoo failed (install phase)
Date: Sun, 14 Mar 2021 18:08:52
Message-Id: e11f39b5-e911-8c78-e7ee-264031016a03@gmail.com
In Reply to: [gentoo-user] ERROR: dev-lang/python-3.9.2::gentoo failed (install phase) by "Valmor F. de Almeida"
1 On 3/14/21 2:20 AM, Valmor F. de Almeida wrote:
2 >
3 > Hello,
4 >
5 > Has anyone seen this recently?
6 >
7 > * Messages for package dev-lang/python-3.9.2:
8 >
9 >  * ERROR: dev-lang/python-3.9.2::gentoo failed (install phase):
10 >  *   (no error message)
11 >  *
12 >  * Call stack:
13 >  *     ebuild.sh, line  125:  Called src_install
14 >  *   environment, line 3125:  Called python_domodule 'epython.py'
15 >  *   environment, line 2609:  Called python_get_sitedir
16 >  *   environment, line 2834:  Called _python_export 'PYTHON_SITEDIR'
17 >  *   environment, line  633:  Called die
18 >  * The specific snippet of code:
19 >  *                   PYTHON_SITEDIR=$("${PYTHON}" -c 'import
20 > distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') || die;
21 >  *
22 >  * If you need support, post the output of `emerge --info
23 > '=dev-lang/python-3.9.2::gentoo'`,
24 >  * the complete build log and the output of `emerge -pqv
25 > '=dev-lang/python-3.9.2::gentoo'`.
26 >  * The complete build log is located at
27 > '/var/tmp/portage/dev-lang/python-3.9.2/temp/build.log'.
28 >  * The ebuild environment file is located at
29 > '/var/tmp/portage/dev-lang/python-3.9.2/temp/environment'.
30 >  * Working directory:
31 > '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'
32 >  * S: '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'
33 >
34 > The error in the log file is:
35 >
36 > Fatal Python error: init_import_site: Failed to import the site module
37 >
38 > I sync portage once a week. Sync problem?
39 >
40 > Inputs appreciated.
41 > Thanks,
42 > --
43 > Valmor
44
45
46 Added info; not sure this helps troubleshooting but I tried this and works:
47
48 Python 3.9.1 (default, Jan 30 2021, 04:59:43)
49 [GCC 9.3.0] on linux
50 Type "help", "copyright", "credits" or "license" for more information.
51 >>> import distutils.sysconfig
52 >>> print(distutils.sysconfig.get_python_lib())
53 /usr/lib/python3.9/site-packages
54 >>>
55
56 Thanks,
57 --
58 Valmor

Replies

Subject Author
[gentoo-user] [SOLVED] Re: ERROR: dev-lang/python-3.9.2::gentoo failed (install phase) "Valmor F. de Almeida" <val.gentoo@×××××.com>