Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-13 Thread Arve Barsnes
On Sat, 13 Mar 2021 at 18:23, Steven Lembark wrote: > > grep python_targets /etc/portage/package.use/* > > That was it: I never new that the python targets got stuck > in the zz_autoconfigure file. > > Sanity check: Do I actually need to set the python target or > python single target for the

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-08 Thread Neil Bothwick
On Sun, 7 Mar 2021 18:52:50 -0500, Steven Lembark wrote: > > > Q: Is there no way to have a consistent version of Python on > > >the system? > > > > Yes, make sure PYTHON_TARGETS and your chosen version of python > > match. > > Q: How do I know which verson of python is suitable? >

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Arve Barsnes
On Mon, 8 Mar 2021 at 00:32, Steven Lembark wrote: > * emerge: there are no ebuilds to satisfy >

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Steven Lembark
> > Q: Is there no way to have a consistent version of Python on > >the system? > > Yes, make sure PYTHON_TARGETS and your chosen version of python match. Q: How do I know which verson of python is suitable? I never deal with the language... last I saw was some news that turn off the

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Neil Bothwick
On Sun, 7 Mar 2021 23:47:26 +, Neil Bothwick wrote: > > So, I go back and eselect 3.8. > > I then try to perform some basic maintainence which fails for > > lack of a python module I think is installed for python 3.8. > > If your system has been built entirely with

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Neil Bothwick
On Sun, 7 Mar 2021 18:32:26 -0500, Steven Lembark wrote: > > 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. > > So, I go back and eselect 3.8. > I then try to perform some

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Steven Lembark
On Sun, 07 Mar 2021 19:30:21 + Michael wrote: > eselect python cleanup > emerge --depclean -v -p > emerge @preserved-rebuild -v -a cleanup doesn't seem to change anything. depcleand doesn't remove anything. @preserved-rebuild failes due to lack of an already-installed python library. --

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Steven Lembark
On Sun, 7 Mar 2021 22:04:39 + Neil Bothwick wrote: > 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

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Neil Bothwick
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" >

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Michael
On Sunday, 7 March 2021 18:43:29 GMT Steven Lembark wrote: > Checking my environment, I'd expect that "python" is 3.9.1, I think? > > # which python > /usr/bin/python > > # ls -al /usr/bin/python > lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python -> python-exec2c > > #

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Steven Lembark
Checking my environment, I'd expect that "python" is 3.9.1, I think? # which python /usr/bin/python # ls -al /usr/bin/python lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python -> python-exec2c # /usr/bin/python --version; Python 3.9.1 (ins)root@dizzy ~ #

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Steven Lembark
> While eselect python is still available the OP can run: > > eselect python update > eselect python cleanup # eselect python update Switching to python3.9 # eselect python cleanup # eselect python list; Available Python interpreters, in order of preference: [1]

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Michael
On Sunday, 7 March 2021 17:03:22 GMT Arve Barsnes wrote: > On Sun, 7 Mar 2021 at 17:00, 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/* > > > >

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Arve Barsnes
On Sun, 7 Mar 2021 at 17:00, 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" >

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-07 Thread Steven Lembark
On Sun, 7 Mar 2021 00:09:47 +0100 David Haller wrote: > Hello, > > On Sat, 06 Mar 2021, Steven Lembark wrote: > >Question then is why "python-exec2c" dispatched via a symlink from > >"python3" would fail to see the installed copy of pyyaml (or how > >should I check with modules are avalable via

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-06 Thread David Haller
Hello, On Sat, 06 Mar 2021, Steven Lembark wrote: >Question then is why "python-exec2c" dispatched via a symlink from >"python3" would fail to see the installed copy of pyyaml (or how >should I check with modules are avalable via "python3")? [..] >I think that pyyaml is installed: > >*

Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-06 Thread Mark Knecht
On Sat, Mar 6, 2021 at 12:38 PM Steven Lembark wrote: > > $ which python3 > /usr/bin/python3 > > $ ls -ld $(which python3) > lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python3 -> python-exec2c > > Thanks > What do you see just running python3 in a terminal? - Mark

[gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?

2021-03-06 Thread Steven Lembark
Question then is why "python-exec2c" dispatched via a symlink from "python3" would fail to see the installed copy of pyyaml (or how should I check with modules are avalable via "python3")? e.g., is there the equivalent of "perl -MYAML -d -E 0" that would allow me to check what it is that python