Gentoo Archives: gentoo-user

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