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 AF43D1382C5 for ; Sun, 7 Mar 2021 22:04:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC580E0928; Sun, 7 Mar 2021 22:04:47 +0000 (UTC) Received: from mail.digimed.co.uk (mail.digimed.co.uk [82.69.83.178]) (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 8D95AE08FC for ; Sun, 7 Mar 2021 22:04:47 +0000 (UTC) Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 94528667CA for ; Sun, 7 Mar 2021 22:04:45 +0000 (GMT) Date: Sun, 7 Mar 2021 22:04:39 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? Message-ID: <20210307220439.47523cf7@digimed.co.uk> In-Reply-To: <20210307110016.09c64f5a.lembark@wrkhors.com> References: <20210306143810.0d17b770.lembark@wrkhors.com> <20210306230947.cunfmvutna7enwr2@grusum.endjinn.de> <20210307110016.09c64f5a.lembark@wrkhors.com> Organization: Digital Media Production X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; boundary="Sig_/zetqW0gLSzDCIY+iejM4B04"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: c639d9d2-9b96-4a5e-9f2d-76ab8d1cd86e X-Archives-Hash: 0270531bc70400dcd50c00ed19b7b5e9 --Sig_/zetqW0gLSzDCIY+iejM4B04 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 7 Mar 2021 11:00:16 -0500, Steven Lembark wrote: > I believe there isn't any PYTHON_TARGET-ish setting on the system: >=20 > $ grep PYTHON_TARGET /etc/portage/make.conf > /etc/portage/package.use/* > /etc/portage/make.conf:#PYTHON_TARGETS=3D"python3_7 python2_7" > /etc/portage/package.use/dizzy:#*/* PYTHON_TARGETS: python3_6 python3_7 > /etc/portage/package.use/dizzy~:#*/* PYTHON_TARGETS: python3_6 python3_7 There is, just not set by you. There is still the default setting, which emerge --info will show you is 3.8. > $ equery uses dev-python/pyyaml > [ Legend : U - final flag setting for installation] > [ : I - package is installed with flag ] > [ Colors : set, unset ] > * Found these USE flags for dev-python/pyyaml-5.4.1: > U I > - - examples : Install examples, usually source > code > + + libyaml : enable support for C implementation > using libyaml > - - python_targets_python3_7 : Build with Python 3.7 > + + python_targets_python3_8 : Build with Python 3.8 > - - python_targets_python3_9 : Build with Python 3.9 > - - test : Enable dependencies and/or > preparations necessary to run tests (usually controlled by > FEATURES=3Dtest but can be toggled > independently) (ins) libyaml is built for python 3.8 only, as that is the setting you have in place. > lembark@dizzy ~ $ eselect python list > Available Python interpreters, in order of preference: > [1] python3.9 > [2] python3.6 > [3] python3.8 (fallback) > [4] python3.7 (fallback) > [5] python2.7 (fallback) >=20 > $ python3 --version; > Python 3.9.1 But you have chosen a different default version of Python. That leaves you two choices: 1) use eselect to set your default python to 3.8 2) Add python_39 to PYTHON_TARGETS 3) Explicitly call python38 in the shebang line of the affected script. =20 --=20 Neil Bothwick QOTD: The only easy way to tell a hamster from a gerbil is that the gerbil has more dark meat. --Sig_/zetqW0gLSzDCIY+iejM4B04 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmBFTfgACgkQ92eFu0QS MJjPYA//WZlKGsQQA3A98fUcDL7T4Z1yBO9vEEoK/bIZ54+67upP18rgf5wZeZKr CUriX9xXYwRUKC1mdriZDqrbFa3Kp/QIX3j47cwZ7UyKgTTyhtstmMSpdITdNVfp /1AcKq0VqbW+ewXj8IQ/6/XtEnNswFbRZa4Inm2kXwK0LsyTI/hR6z8+vr2qXNKb 3VJVwRYgIxrHlejgJjfyidgXiHFdXLMBwC+i5Bb25+yUFs20B7KVr4covMK5RG/j qGGt58dprdm/DLzVjbLZA3q3DEro147I8RqEQc/mvW4H9nCyRvcpcCuK2uvfDQdB nI7YYsCRReVAoWE+DOcs2Gn2HNRYu5SP5ggYCjGSRYD2BwwAqDp6QVK5Zhk75xD2 EAD40Ca4UcVuSuonWgwFKN4tWXMpDNqGs8v8dxNyFEXjh/ves9SGMqKtw06MAR8M 5zYwZqWEgYfaNmwwIHrBFDpLukt9RRkbNBxfIuG89arSK5sXQEEPiyHSYW6+KfFR boYx9KkZ/9BbhdLsyv+POQm50Dph1CpkUBFJ7V+9NU3xXj4KjF2zcNlzdpBP/eDV di1cAfjhma1PV6l/Vwd0l9mXc9RvgKv6SLXhru7TTv4+GD/ZT3qargnUBF0eGo6f xQGNmz5aDmlAMZjJloaCDtu+03gwlEoR95UqOzrKPDMcUBXofWo= =oMvY -----END PGP SIGNATURE----- --Sig_/zetqW0gLSzDCIY+iejM4B04--