public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
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?
Date: Sun, 7 Mar 2021 22:04:39 +0000	[thread overview]
Message-ID: <20210307220439.47523cf7@digimed.co.uk> (raw)
In-Reply-To: <20210307110016.09c64f5a.lembark@wrkhors.com>

[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]

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:
> 
>      $ grep PYTHON_TARGET /etc/portage/make.conf
> /etc/portage/package.use/*
> /etc/portage/make.conf:#PYTHON_TARGETS="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=test 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)
> 
>     $ 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.
 

-- 
Neil Bothwick

QOTD:
	The only easy way to tell a hamster from a gerbil is that the
	gerbil has more dark meat.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2021-03-07 22:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06 19:38 [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? Steven Lembark
2021-03-06 21:29 ` Mark Knecht
2021-03-06 23:09 ` David Haller
2021-03-07 16:00   ` Steven Lembark
2021-03-07 17:03     ` Arve Barsnes
2021-03-07 17:06       ` Michael
2021-03-07 18:37         ` Steven Lembark
2021-03-07 18:43         ` Steven Lembark
2021-03-07 19:30           ` Michael
2021-03-07 23:33             ` Steven Lembark
2021-03-07 22:04     ` Neil Bothwick [this message]
2021-03-07 23:32       ` Steven Lembark
2021-03-07 23:47         ` Neil Bothwick
2021-03-07 23:51           ` Neil Bothwick
2021-03-07 23:52           ` Steven Lembark
2021-03-08  9:20             ` Neil Bothwick
2021-03-08  6:05         ` Arve Barsnes
     [not found]           ` <20210313122340.6d795eb1.lembark@wrkhors.com>
2021-03-13 17:52             ` Arve Barsnes

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=20210307220439.47523cf7@digimed.co.uk \
    --to=neil@digimed.co.uk \
    --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