[gentoo-user] eselect python...
Hi, I did an eselect python list and got [1] python3.6 [2] python2.7 (fallback) . Then I did an eselect python set 2 to examine some error while trying to install a local package. And then I switched back wth eselect python set 2 again since python3.6 was set at [2] now. Now eselect python list shows me [1] python3.6 [2] python2.7 . The "(fallback)" was missing now. How do I need to use eselect to set python2.7 as fallback" Cheers! Meino PS: This https://wiki.gentoo.org/wiki/Python and https://wiki.gentoo.org/wiki/Project:Eselect/User_guide gave me no answer...
Re: [gentoo-user] eselect python...
On Thu, 13 Dec 2018 08:54:42 +0100 wrote > Hi, > > I did an > > eselect python list > > and got > > [1] python3.6 > [2] python2.7 (fallback) > > . Then I did an > > > eselect python set 2 > > to examine some error while trying to install a local > package. And then I switched back wth > > > eselect python set 2 > > again since python3.6 was set at [2] now. > > Now > > eselect python list > > shows me > > [1] python3.6 > [2] python2.7 > > > . The "(fallback)" was missing now. > > > > How do I need to use eselect to set python2.7 as fallback" > > > > Cheers! > Meino > > > > PS: > This > https://wiki.gentoo.org/wiki/Python > and > https://wiki.gentoo.org/wiki/Project:Eselect/User_guide > gave me no answer... > > > Hello, This is probably because you now have Python2.7 as active. You can change it back to have the fallback label doing the following: # eselect python edit < Then remove the python2.7 entry from the file and save > Calling again eselect python list should report python2.7 as fallback. Cheers
[gentoo-user] eselect python cleanup
When I try an emerge I get E6430 ~ # emerge --update --changed-use --with-bdeps=n --exclude chromium --keep-going @world python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4 These are the packages that would be merged, in reverse order: Calculating dependencies... done! Nothing to merge; quitting. eselect python list gives Available Python interpreters, in order of preference: [1] python3.6 [2] python3.4 (uninstalled) [3] python3.5 (fallback) [4] python2.7 (fallback) Am I correct in believing that I should now execute eselect python cleanup thanks in advance allan
Re: [gentoo-user] eselect python cleanup
On 2019.03.23 17:58, allan gottlieb wrote: When I try an emerge I get E6430 ~ # emerge --update --changed-use --with-bdeps=n --exclude chromium --keep-going @world python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4 These are the packages that would be merged, in reverse order: Calculating dependencies... done! Nothing to merge; quitting. eselect python list gives Available Python interpreters, in order of preference: [1] python3.6 [2] python3.4 (uninstalled) [3] python3.5 (fallback) [4] python2.7 (fallback) Am I correct in believing that I should now execute eselect python cleanup thanks in advance allan I just ran into the same problem, and that solution seems to have worked for me. Jack
Re: [gentoo-user] eselect python cleanup
On Sat, Mar 23 2019, Jack wrote: > On 2019.03.23 17:58, allan gottlieb wrote: >> When I try an emerge I get >> >> E6430 ~ # emerge --update --changed-use --with-bdeps=n --exclude >> chromium --keep-going @world >> python-exec: Invalid impl in /etc/python-exec/python-exec.conf: >> python3.4 >> These are the packages that would be merged, in reverse order: >> Calculating dependencies... done! >> Nothing to merge; quitting. >> >> eselect python list gives >> Available Python interpreters, in order of preference: >> [1] python3.6 >> [2] python3.4 (uninstalled) >> [3] python3.5 (fallback) >> [4] python2.7 (fallback) >> >> Am I correct in believing that I should now execute >>eselect python cleanup >> >> thanks in advance >> allan > > I just ran into the same problem, and that solution seems to have > worked for me. > > Jack Thank you. allan
Re: [gentoo-user] eselect python cleanup
On Sat, 23 Mar 2019 18:08:09 -0400, Jack wrote: > > Am I correct in believing that I should now execute > >eselect python cleanup > I just ran into the same problem, and that solution seems to have > worked for me. It worked for me, but only after I ran it twice. This was reproducible on several systems. -- Neil Bothwick "A hundred years of forgetting and it all comes rushing back..." pgpH79pg7r2dS.pgp Description: OpenPGP digital signature
Re: [gentoo-user] eselect python cleanup
On Sun, Mar 24 2019, Neil Bothwick wrote: > On Sat, 23 Mar 2019 18:08:09 -0400, Jack wrote: > >> > Am I correct in believing that I should now execute >> >eselect python cleanup > >> I just ran into the same problem, and that solution seems to have >> worked for me. > > It worked for me, but only after I ran it twice. This was reproducible on > several systems. It worked for me running only once on each of two systems. By worked I mean the error msg python-exec: Invalid impl in /etc/python-exec/python-exec.conf: python3.4 stopped appearing on my "emerge update world" commands. Perhaps you Neil tested further for failure and Jack and I should as well. allan
Re: [gentoo-user] eselect python cleanup
On Sun, Mar 24, 2019 at 5:04 PM allan gottlieb wrote: > On Sun, Mar 24 2019, Neil Bothwick wrote: > > > On Sat, 23 Mar 2019 18:08:09 -0400, Jack wrote: > > > >> > Am I correct in believing that I should now execute > >> >eselect python cleanup > > > >> I just ran into the same problem, and that solution seems to have > >> worked for me. > > > > It worked for me, but only after I ran it twice. This was reproducible on > > several systems. > > It worked for me running only once on each of two systems. > By worked I mean the error msg > > python-exec: Invalid impl in /etc/python-exec/python-exec.conf: > python3.4 > > stopped appearing on my "emerge update world" commands. Perhaps you Neil > tested further for failure and Jack and I should as well. > > allan > > I found that each invocation of “eselect python cleanup” cleaned up only one instance of an uninstalled python interpreter. I had 2 such instances on my boxes, so 2 invocations did the trick for me. Cleanup doesn’t (apparently) clean everything up. John Blinka
Re: [gentoo-user] eselect python cleanup
On Sun, 24 Mar 2019 17:04:25 -0400, allan gottlieb wrote: > >> > Am I correct in believing that I should now execute > >> >eselect python cleanup > > > >> I just ran into the same problem, and that solution seems to have > >> worked for me. > > > > It worked for me, but only after I ran it twice. This was > > reproducible on several systems. > > It worked for me running only once on each of two systems. > By worked I mean the error msg > > python-exec: Invalid impl in /etc/python-exec/python-exec.conf: > python3.4 > > stopped appearing on my "emerge update world" commands. Perhaps you > Neil tested further for failure and Jack and I should as well. No, I tested exactly the same: emerge world gives warning run eselect python cleanup emerge world gives warning run eselect python cleanup emerge world gives no warning I should have examined /etc/python-exec/python-exec.conf beforehand, maybe it included two mentions of python3.4. -- Neil Bothwick When puns are outlawed only outlaws will have puns. pgpN6Xs5nmJqi.pgp Description: OpenPGP digital signature
Re: [gentoo-user] eselect python cleanup
On Sunday, 24 March 2019 22:23:40 GMT Neil Bothwick wrote: > On Sun, 24 Mar 2019 17:04:25 -0400, allan gottlieb wrote: > > >> > Am I correct in believing that I should now execute > > >> > > > >> >eselect python cleanup > > >> > > >> I just ran into the same problem, and that solution seems to have > > >> worked for me. > > > > > > It worked for me, but only after I ran it twice. This was > > > reproducible on several systems. > > > > It worked for me running only once on each of two systems. > > By worked I mean the error msg > > > > python-exec: Invalid impl in /etc/python-exec/python-exec.conf: > > python3.4 > > > > stopped appearing on my "emerge update world" commands. Perhaps you > > Neil tested further for failure and Jack and I should as well. > > No, I tested exactly the same: > > emerge world gives warning > run eselect python cleanup > emerge world gives warning > run eselect python cleanup > emerge world gives no warning > > I should have examined /etc/python-exec/python-exec.conf beforehand, > maybe it included two mentions of python3.4. In my case /etc/python-exec/python-exec.conf included python 3.4 and 3.5, while 'eselect python list' showed them as "(uninstalled)". After running 'eselect python cleanup' only 3.6 is shown now in python-exec.conf, although python list also shows 2.7 as a fallback. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] eselect python cleanup
On Sun, 24 Mar 2019 23:12:36 +, Mick wrote: > > > stopped appearing on my "emerge update world" commands. Perhaps you > > > Neil tested further for failure and Jack and I should as well. > > > > No, I tested exactly the same: > > > > emerge world gives warning > > run eselect python cleanup > > emerge world gives warning > > run eselect python cleanup > > emerge world gives no warning > > > > I should have examined /etc/python-exec/python-exec.conf beforehand, > > maybe it included two mentions of python3.4. > > In my case /etc/python-exec/python-exec.conf included python 3.4 and > 3.5, while 'eselect python list' showed them as "(uninstalled)". After > running 'eselect python cleanup' only 3.6 is shown now in > python-exec.conf, although python list also shows 2.7 as a fallback. Both warnings were about python3.4. Looking at a btrfs snapshot from yesterday, I see what happened. python-exec.conf contained python2.7 python3.5 python3.6 python3.4 I only have 2.7 and 3.6 installed. Running eselect clean the first time must have removed only the pythong3.5 entry, hence the identical warning about 3.4, then that entry was removed on the second run. It appears, as suggested elsewhere, that eselect python clean cleans only one entry at a time. -- Neil Bothwick Nobody's perfect and since I'm nobody...! pgpns5T9N5vjT.pgp Description: OpenPGP digital signature
Re: [gentoo-user] eselect python cleanup
On Monday, 25 March 2019 00:40:35 GMT Neil Bothwick wrote: > I see what happened. python-exec.conf contained > > python2.7 > python3.5 > python3.6 > python3.4 > > I only have 2.7 and 3.6 installed. [snip ...] In my system I also only have 2.7 and 3.6 installed: $ eselect python list Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) However, python-exec.conf only contains 3.6 ... from what you're saying it should contain both? Or are they both present only if you have not set up a python version with eselect? (I have set python3.6). -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] eselect python cleanup
On Mon, 25 Mar 2019 08:50:09 +, Mick wrote: > In my system I also only have 2.7 and 3.6 installed: > > $ eselect python list > Available Python interpreters, in order of preference: > [1] python3.6 > [2] python2.7 (fallback) > > However, python-exec.conf only contains 3.6 ... from what you're saying > it should contain both? Or are they both present only if you have not > set up a python version with eselect? (I have set python3.6). I'm not saying what should be, only what mine is. % eselect python list Available Python interpreters, in order of preference: [1] python2.7 [2] python3.6 (fallback) I set python2.7 as the default because some older python scripts are for python2 but don't specify the version in the shebang. I suspect you are right but you could try setting the default to 2.7 and then back to 3.6 to see if that changes the file. -- Neil Bothwick Oxymoron: Reagan memoirs. pgpTm1eB13ktM.pgp Description: OpenPGP digital signature
Re: [gentoo-user] eselect python cleanup
On Monday, 25 March 2019 09:04:16 GMT Neil Bothwick wrote: > On Mon, 25 Mar 2019 08:50:09 +, Mick wrote: > > In my system I also only have 2.7 and 3.6 installed: > > > > $ eselect python list > > > > Available Python interpreters, in order of preference: > > [1] python3.6 > > [2] python2.7 (fallback) > > > > However, python-exec.conf only contains 3.6 ... from what you're saying > > it should contain both? Or are they both present only if you have not > > set up a python version with eselect? (I have set python3.6). > > I'm not saying what should be, only what mine is. > > % eselect python list > Available Python interpreters, in order of preference: > [1] python2.7 > [2] python3.6 (fallback) > > I set python2.7 as the default because some older python scripts are for > python2 but don't specify the version in the shebang. I suspect you are > right but you could try setting the default to 2.7 and then back to 3.6 > to see if that changes the file. Yes, you right. I set 2.7 and both 2.7 & 3.6 are now stored in python- exec.conf. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] eselect-python without effect
Hello, when I use eselect python set 2 have this no effect and on other machines is python linked with python-wrapperscript, but on the laptop is python linked with pyexec. Have someone an idea? Thank you Silvio sisibox siefke # eselect python list Available Python interpreters, in order of preference: [1] python2.7 [2] python3.4 sisibox siefke # eselect python set 2 sisibox siefke # eselect python list Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 sisibox siefke # find -P /usr/bin -name "*python*" -type l -exec echo -n "{} -> " \; -exec readlink {} \; /usr/bin/python2-config -> ../lib/python-exec/python-exec2 /usr/bin/python-config-2.7 -> python2.7-config /usr/bin/python -> python-exec2c /usr/bin/python2 -> python-exec2c /usr/bin/python-config-3.4 -> python3.4-config /usr/bin/python-config -> ../lib/python-exec/python-exec2 /usr/bin/python3 -> python-exec2c /usr/bin/python3-config -> ../lib/python-exec/python-exec2 sisibox siefke # genlop -l | grep python-2* Thu Nov 10 10:38:21 2016 >>> dev-lang/python-exec-2.0.2 Thu Nov 10 11:12:45 2016 >>> dev-lang/python-exec-2.4.3 Thu Nov 10 11:31:58 2016 >>> dev-lang/python-exec-2.4.3 Thu Nov 10 11:57:41 2016 >>> dev-lang/python-exec-2.4.3 Thu Nov 10 12:04:13 2016 >>> dev-lang/python-2.7.10-r1 Thu Nov 10 12:10:16 2016 >>> dev-lang/python-3.4.3-r1 Thu Nov 10 15:04:04 2016 >>> app-eselect/eselect-python-20160516 Thu Nov 10 15:11:26 2016 >>> app-eselect/eselect-python-20160516 pgpUHRE1WVhuv.pgp Description: PGP signature
Re: [gentoo-user] eselect-python without effect
On Thu, Nov 10, 2016 at 10:02 AM, Silvio Siefke wrote: > Hello, > > when I use eselect python set 2 have this no effect and on other machines > is python linked with python-wrapperscript, but on the laptop is python > linked with pyexec. > > Have someone an idea? You are probably running ~arch on the laptop and stable on the other machines. We are changing the way eselect-python works in newer versions -- we just haven't stabilized it yet.