On 3/14/21 1:08 PM, Valmor F. de Almeida wrote:
>
>
> On 3/14/21 2:20 AM, Valmor F. de Almeida wrote:
>>
>> Hello,
>>
>> Has anyone seen this recently?
>>
>> * Messages for package dev-lang/python-3.9.2:
>>
>> * ERROR: dev-lang/python-3.9.2::gentoo failed (install phase):
>> * (no error message)
>> *
>> * Call stack:
>> * ebuild.sh, line 125: Called src_install
>> * environment, line 3125: Called python_domodule 'epython.py'
>> * environment, line 2609: Called python_get_sitedir
>> * environment, line 2834: Called _python_export 'PYTHON_SITEDIR'
>> * environment, line 633: Called die
>> * The specific snippet of code:
>> * PYTHON_SITEDIR=$("${PYTHON}" -c 'import
>> distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') ||
>> die;
>> *
>> * If you need support, post the output of `emerge --info
>> '=dev-lang/python-3.9.2::gentoo'`,
>> * the complete build log and the output of `emerge -pqv
>> '=dev-lang/python-3.9.2::gentoo'`.
>> * The complete build log is located at
>> '/var/tmp/portage/dev-lang/python-3.9.2/temp/build.log'.
>> * The ebuild environment file is located at
>> '/var/tmp/portage/dev-lang/python-3.9.2/temp/environment'.
>> * Working directory:
>> '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'
>> * S: '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'
>>
>> The error in the log file is:
>>
>> Fatal Python error: init_import_site: Failed to import the site module
>>
>> I sync portage once a week. Sync problem?
>>
>> Inputs appreciated.
>> Thanks,
>> --
>> Valmor
>
>
> Added info; not sure this helps troubleshooting but I tried this and works:
>
> Python 3.9.1 (default, Jan 30 2021, 04:59:43)
> [GCC 9.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import distutils.sysconfig
> >>> print(distutils.sysconfig.get_python_lib())
> /usr/lib/python3.9/site-packages
> >>>
>
> Thanks,
> --
> Valmor
For the record:
emerge --sync
solved it.
--
Valmor
>
>
> On 3/14/21 2:20 AM, Valmor F. de Almeida wrote:
>>
>> Hello,
>>
>> Has anyone seen this recently?
>>
>> * Messages for package dev-lang/python-3.9.2:
>>
>> * ERROR: dev-lang/python-3.9.2::gentoo failed (install phase):
>> * (no error message)
>> *
>> * Call stack:
>> * ebuild.sh, line 125: Called src_install
>> * environment, line 3125: Called python_domodule 'epython.py'
>> * environment, line 2609: Called python_get_sitedir
>> * environment, line 2834: Called _python_export 'PYTHON_SITEDIR'
>> * environment, line 633: Called die
>> * The specific snippet of code:
>> * PYTHON_SITEDIR=$("${PYTHON}" -c 'import
>> distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') ||
>> die;
>> *
>> * If you need support, post the output of `emerge --info
>> '=dev-lang/python-3.9.2::gentoo'`,
>> * the complete build log and the output of `emerge -pqv
>> '=dev-lang/python-3.9.2::gentoo'`.
>> * The complete build log is located at
>> '/var/tmp/portage/dev-lang/python-3.9.2/temp/build.log'.
>> * The ebuild environment file is located at
>> '/var/tmp/portage/dev-lang/python-3.9.2/temp/environment'.
>> * Working directory:
>> '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'
>> * S: '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'
>>
>> The error in the log file is:
>>
>> Fatal Python error: init_import_site: Failed to import the site module
>>
>> I sync portage once a week. Sync problem?
>>
>> Inputs appreciated.
>> Thanks,
>> --
>> Valmor
>
>
> Added info; not sure this helps troubleshooting but I tried this and works:
>
> Python 3.9.1 (default, Jan 30 2021, 04:59:43)
> [GCC 9.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import distutils.sysconfig
> >>> print(distutils.sysconfig.get_python_lib())
> /usr/lib/python3.9/site-packages
> >>>
>
> Thanks,
> --
> Valmor
For the record:
emerge --sync
solved it.
--
Valmor