public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Valmor F. de Almeida" <val.gentoo@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] [SOLVED] Re: ERROR: dev-lang/python-3.9.2::gentoo failed (install phase)
Date: Sun, 14 Mar 2021 13:43:59 -0500	[thread overview]
Message-ID: <1c659399-88ca-1ee8-7ad1-d15a8613f4ef@gmail.com> (raw)
In-Reply-To: <e11f39b5-e911-8c78-e7ee-264031016a03@gmail.com>



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



      reply	other threads:[~2021-03-14 18:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-14  7:20 [gentoo-user] ERROR: dev-lang/python-3.9.2::gentoo failed (install phase) Valmor F. de Almeida
2021-03-14 18:08 ` [gentoo-user] " Valmor F. de Almeida
2021-03-14 18:43   ` Valmor F. de Almeida [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c659399-88ca-1ee8-7ad1-d15a8613f4ef@gmail.com \
    --to=val.gentoo@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox