From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C8A61382C5 for ; Sun, 14 Mar 2021 18:44:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F1F8E083B; Sun, 14 Mar 2021 18:44:02 +0000 (UTC) Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 18C98E079E for ; Sun, 14 Mar 2021 18:44:01 +0000 (UTC) Received: by mail-qk1-x733.google.com with SMTP id m186so13030428qke.12 for ; Sun, 14 Mar 2021 11:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=BoyvUC6wJwUnB0X+tGfCUcIGLw3RnnHajFfz6uJyGgQ=; b=C+MsMt2Z65y0Oyk714MQDwufrno7EkBsL8qWweEbpsPSCzTDnaAVjWc/prWUOj/3v4 bKXyS24/gh7nEtvXodT/g9RSqlU1y2AzOC+BR25c2HEgPn9uRJ4xrxkhbQBKCeDAduK0 OCfjrFWpm/qVJ9NJt84drhmG+o+rBWdBcgHYHgtqGnOmkE3zx/8ET1vg3aA6XcIVcOZ9 fuJjDbOzdPmE3CWB4wZryg9Rgv2ZBa2SZ6UyaLxtQTd9Jh1f5bQD91YOSexqk9BwenCO o21DB8QTLFOVlAjvtfZBiSXlYuzgemHF2q5Eh2o7U+myRnfsUtt0GCn7RjkhtD7aCKI8 Xr1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BoyvUC6wJwUnB0X+tGfCUcIGLw3RnnHajFfz6uJyGgQ=; b=bkjBvMttYbrBt+8fVu7vNGBnJN1sSTPqtWzZdrO7iI0Sf4GV2cPTXVIine5sx2UXoR fZcCJsjn4cdnqj00xMTmhr44lfKFvPBKD/7x+qDakfv4Ew2/+MaZLKxly4zDDcdDiVnH jHvQDgRBmcTpSgKs6lzS+N8Xwz2Tq6ABzeyLgEx+kqxhH+kGjsqKboG0v7kK+3MtgHnf fjFpaIGW6WbxHePNprae1S9nIGaCJKhnwbU/s7caG2AWzPZpVgGUMbFF3Ycw2mrrgfU7 8OvBmoYVaYlABZkh2HAJ+0ujBr4n1UM68QYIpuobtFK2JG3frRs1d0fkjjhL1gtFPqzx zPYQ== X-Gm-Message-State: AOAM531UQBbY8cKEd5TTRbubQsE3YwVB0NXMnrQamxqPQD8kp5yVNVYI HwS/8STDr6tk2ctpruEnq3HiDaIdAoU= X-Google-Smtp-Source: ABdhPJzgvfpEPFC1rbXpB1d0rHrcN58H+BDPOUcY4kwv2nah7q3nDFEss1e/jCidm+ap/iViuaHDmw== X-Received: by 2002:a37:ae44:: with SMTP id x65mr21935541qke.9.1615747440987; Sun, 14 Mar 2021 11:44:00 -0700 (PDT) Received: from ?IPv6:2600:1000:b11f:5aa8:1c21:25d1:4cdd:7a6f? ([2600:1000:b11f:5aa8:1c21:25d1:4cdd:7a6f]) by smtp.gmail.com with ESMTPSA id h7sm10119275qkk.41.2021.03.14.11.44.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Mar 2021 11:44:00 -0700 (PDT) Subject: [gentoo-user] [SOLVED] Re: ERROR: dev-lang/python-3.9.2::gentoo failed (install phase) From: "Valmor F. de Almeida" To: gentoo-user@lists.gentoo.org References: Message-ID: <1c659399-88ca-1ee8-7ad1-d15a8613f4ef@gmail.com> Date: Sun, 14 Mar 2021 13:43:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Archives-Salt: c3e02a76-1247-4b09-95ff-e690836e6824 X-Archives-Hash: 4b540a8cbbefbd31ec8484234a0d0b2b 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