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 |