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.
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 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 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 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 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 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, 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 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 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 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