Re: [gentoo-user] how to set python version for one user

2018-07-10 Thread Mike Gilbert
On Tue, Jul 10, 2018 at 4:23 AM,   wrote:
> Hi,
>
> I need to set specific python version to a user and I don't want to set it
> up for whole system. Is it possible? If so how to do it. All I found is
> about setting for whole system.

On Gentoo, you can set the EPYTHON environment variable.

floppym@naomi ~ % python --version
Python 3.6.6
floppym@naomi ~ % export EPYTHON=python2.7
floppym@naomi ~ % python --version
Python 2.7.15



Re: [gentoo-user] vlc failed to compile

2018-07-10 Thread Alexander Kapshuk
On Tue, Jul 10, 2018 at 3:00 PM gevisz  wrote:
>
> 2018-07-10 12:58 GMT+03:00 Alexander Kapshuk :
> > On Tue, Jul 10, 2018 at 12:42 PM gevisz  wrote:
> >>
> >> In today's update vlc failed to compile.
> >>
> >> What shall I do?
> >>
> >
> > Rebuild libebml:
> > emerge -1 libebml
> >
> > See 
> > https://forums.gentoo.org/viewtopic-p-8184582.html?sid=f451f5dcad08d0eba731189fa8480c77
>
> It has helped. Thank you.
>

Good to hear. Thanks for letting us know.



Re: [gentoo-user] how to set python version for one user

2018-07-10 Thread Ralph Seichter
On 10.07.2018 10:23, p...@xvalheru.org wrote:

> I need to set specific python version to a user and I don't want to
> set it up for whole system. Is it possible?

I can't tell if by "set it up" to have Python binaries available for
only one user, or if you want one user to use a different Python version
from other users, with multiple Python versions potentially available to
all users, which would be then "Gentoo way".

If you have, for example, Python 2.7 and 3.6 installed, you can use
"eselect python set ..." to configure the default Python for most users.
For individual users, I recommend a Python virtual environment. You can
use the 'virtualenv' module for both Python 2.7 and 3.x, but since Python
3.5 the built-in 'venv' module is recommended.

I know soft links to a specific Python version were recommended here,
but based on my experience I strongly discourage that. Your special user
will need more than just the binaries, and a venv is definitely the more
robust and versatile way to go.

-Ralph




Re: [gentoo-user] how to set python version for one user [SOLVED]

2018-07-10 Thread pat

On 2018-07-10 14:09, p...@xvalheru.org wrote:

On 2018-07-10 11:22, Helmut Jarausch wrote:

On 07/10/2018 10:23:05 AM, p...@xvalheru.org wrote:

Hi,

I need to set specific python version to a user and I don't want to
set
it up for whole system. Is it possible? If so how to do it. All I
found
is about setting for whole system.

Thanks

Pat



A simple method would be to set up the PATH for this user to prepend a
local folder,
.e.g  $HOME/bin

Then copy (or symlink) the desired Python version from /usr/bin to 
that

folder under
a different name (i.e. without the (full) version number)

Helmut




Thanks I'll check this.

Pat



Thanks Helmut, it works.

Pat


Freehosting PIPNI - http://www.pipni.cz/




[gentoo-user] Re: whats going on with python versions?

2018-07-10 Thread Grant Edwards
On 2018-07-10, John Covici  wrote:

> In my last update which was about June 21 or so, lots of packages
> were reinstalled to make python3.6 the default target for python3.
> I don't have any targets like that in my make.conf, so it was done
> -- about 200 reinstalls.  Now when I look at my latest update, a lot
> of them are going back to 3.5 instead.

That's why I set PYTHON_SINGLE_TARGET="python3_5" in my make.conf.  I
figured it would be best to wait until everything worked with 3.6.  My
guess is that six months or so after 3.6 becomes the default ought to
do it.

-- 
Grant Edwards   grant.b.edwardsYow! So this is what it
  at   feels like to be potato
  gmail.comsalad




Re: [gentoo-user] how to set python version for one user

2018-07-10 Thread pat

On 2018-07-10 11:22, Helmut Jarausch wrote:

On 07/10/2018 10:23:05 AM, p...@xvalheru.org wrote:

Hi,

I need to set specific python version to a user and I don't want to
set
it up for whole system. Is it possible? If so how to do it. All I
found
is about setting for whole system.

Thanks

Pat



A simple method would be to set up the PATH for this user to prepend a
local folder,
.e.g  $HOME/bin

Then copy (or symlink) the desired Python version from /usr/bin to that
folder under
a different name (i.e. without the (full) version number)

Helmut




Thanks I'll check this.

Pat


Freehosting PIPNI - http://www.pipni.cz/




Re: [gentoo-user] Upgrading gcc from 6.4 to 7.3

2018-07-10 Thread gevisz
2018-06-20 15:49 GMT+03:00 gevisz :
> 2018-06-20 15:01 GMT+03:00 gevisz :
>> 2018-06-20 14:16 GMT+03:00 Mick :
>>> On Wednesday, 20 June 2018 11:43:32 BST gevisz wrote:
 After updating portage tree today, portage
 suggested to upgrade gcc from 6.4 to 7.3
 version what I have done just now.

 Nevertheless,
 # gcc-config --list-profiles
  [1] x86_64-pc-linux-gnu-6.4.0 *
  [2] x86_64-pc-linux-gnu-7.3.0
 shows that I still have version 6.4 as a default.
>>>
>>> I'm on gcc-7.3.0-r3 and have not noticed any problems on 3 boxen so far.
>>>
>>>
 As https://wiki.gentoo.org/wiki/Upgrading_GCC
 still do not have any specific instructions on
 switching to gcc version 7.3, I am still afread
 of switching to gcc version 7.3 and would like
 to ask if anybody encountered some problem
 after switching to gcc version 7.3 and which
 packages should be rebuild after such switching.

 Thank you in advance for your help.
>>>
>>> I didn't have to rebuild anything, but if you have reasons to fear breakage
>>> you can rebuild your toolchain:
>>>
>>> 1. Use gcc-config to select x86_64-pc-linux-gnu-7.3.0
>>> 2. Re-source /etc/profile by running in your current console/terminal:
>>> . /etc/profile
>>> 3. Re-emerge libtool:
>>> emerge -1 sys-devel/libtool
>>> 4. Re-emerge the following packages in this order:
>>> emerge -1 sys-devel/gcc-7.3.0-r3
>>> emerge -1 sys-devel/binutils
>>> emerge -1 sys-libs/glibc
>>> 5. You could if you want re-emerge your entire system, 'emerge -e @world' or
>>> if you would rather conserve electricity wait as different packages come up
>>> for an update over time.
>>>
>>> If my experience to date holds true and for a general purpose desktop none 
>>> of
>>> the above rebuilds are necessary, other than switching your gcc to 7.3.0.
>>
>> Thank you for your reply. I do not want to rebuild gcc-7.3 for the second 
>> time
>> today (as far as the temperature in my room is already +30°C). So, I will 
>> stick
>> to your last advice: I will just switch the default gcc version to 7.3
>> and wait for problems to appear. :)
>
> Just have rebuilt libtool and llvm, to have less problems. :)

Just today vlc failed to compile because libebml have been compiled
with gcc-6.4.0.
(Thanks to Alexander Kapshuk for the tip.)

So, libebml should be added to the list of packages that have to be
recompiled with gcc-7.3
(namely, to libtool and llvm), and recompiling everything twice after
updating major version
of gcc does not seem to be so bad idea for me any more. :)



Re: [gentoo-user] how to set python version for one user

2018-07-10 Thread pat

On 2018-07-10 11:19, Alexander Kapshuk wrote:

On Tue, Jul 10, 2018 at 11:23 AM  wrote:


Hi,

I need to set specific python version to a user and I don't want to 
set
it up for whole system. Is it possible? If so how to do it. All I 
found

is about setting for whole system.

Thanks

Pat



How about this?
echo alias python='python2.7' >> ~user/.bash_profile



Well, this one doesn't work in case at the beginning of the python 
script is:

#!/usr/bin/env python

I have a "lot of scripts" with this. What I've thought there will be 
possibility to setup python version per user similar as for gcc (I 
think).


Thanks for help

Pat


Freehosting PIPNI - http://www.pipni.cz/




Re: [gentoo-user] vlc failed to compile

2018-07-10 Thread gevisz
2018-07-10 12:58 GMT+03:00 Alexander Kapshuk :
> On Tue, Jul 10, 2018 at 12:42 PM gevisz  wrote:
>>
>> In today's update vlc failed to compile.
>>
>> What shall I do?
>>
>
> Rebuild libebml:
> emerge -1 libebml
>
> See 
> https://forums.gentoo.org/viewtopic-p-8184582.html?sid=f451f5dcad08d0eba731189fa8480c77

It has helped. Thank you.



Re: [gentoo-user] whats going on with python versions?

2018-07-10 Thread Mick
On Tuesday, 10 July 2018 10:49:37 BST Neil Bothwick wrote:
> On Tue, 10 Jul 2018 12:39:17 +0300, gevisz wrote:
> > >> I am on the unstable, but this is rediculous.
> > > 
> > > It's not ridiculous, it's exactly what the testing tree is for, to
> > > find problems like this. The testing tree changes quickly, by its
> > > very nature, leaving nearly three weeks between updates is probably a
> > > bit too long.
> > 
> > The same happened in stable as well.
> 
> Doh! You're right, I forgot that my stable boxes got hit too.

Any idea when the incompatible package ebuilds will be sorted out on the 
stable tree so we can move onto 3.6 properly?  I also don't fancy rebuilding 
200+ packages in the middle of a heat wave.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] vlc failed to compile

2018-07-10 Thread Alexander Kapshuk
On Tue, Jul 10, 2018 at 12:42 PM gevisz  wrote:
>
> In today's update vlc failed to compile:
>
> make[4]: Leaving directory
> '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3/modules'
> make[3]: *** [Makefile:26145: all-recursive] Error 1
> make[3]: Leaving directory
> '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3/modules'
> make[2]: *** [Makefile:11238: all] Error 2
> make[2]: Leaving directory
> '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3/modules'
> make[1]: *** [Makefile:1530: all-recursive] Error 1
> make[1]: Leaving directory
> '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3'
> make: *** [Makefile:1415: all] Error 2
>  * ERROR: media-video/vlc-3.0.3-r1::gentoo failed (compile phase):
>  *   emake failed
>  *
>  * If you need support, post the output of `emerge --info
> '=media-video/vlc-3.0.3-r1::gentoo'`,
>  * the complete build log and the output of `emerge -pqv
> '=media-video/vlc-3.0.3-r1::gentoo'`.
>  * The complete build log is located at
> '/var/log/portage/media-video:vlc-3.0.3-r1:20180710-081824.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/media-video/vlc-3.0.3-r1/temp/environment'.
>  * Working directory: 
> '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3'
>  * S: '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3'
>
> >>> Failed to emerge media-video/vlc-3.0.3-r1, Log file:
>
> >>>  '/var/log/portage/media-video:vlc-3.0.3-r1:20180710-081824.log'
>
> What shall I do?
>

Rebuild libebml:
emerge -1 libebml

See 
https://forums.gentoo.org/viewtopic-p-8184582.html?sid=f451f5dcad08d0eba731189fa8480c77



Re: [gentoo-user] whats going on with python versions?

2018-07-10 Thread Neil Bothwick
On Tue, 10 Jul 2018 12:39:17 +0300, gevisz wrote:

> >> I am on the unstable, but this is rediculous.  
> >
> > It's not ridiculous, it's exactly what the testing tree is for, to
> > find problems like this. The testing tree changes quickly, by its
> > very nature, leaving nearly three weeks between updates is probably a
> > bit too long.  
> 
> The same happened in stable as well.

Doh! You're right, I forgot that my stable boxes got hit too.


-- 
Neil Bothwick

Bang on the LEFT side of your computer to restart Windows


pgpvk5Z08TPwh.pgp
Description: OpenPGP digital signature


[gentoo-user] vlc failed to compile

2018-07-10 Thread gevisz
In today's update vlc failed to compile:

make[4]: Leaving directory
'/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3/modules'
make[3]: *** [Makefile:26145: all-recursive] Error 1
make[3]: Leaving directory
'/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3/modules'
make[2]: *** [Makefile:11238: all] Error 2
make[2]: Leaving directory
'/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3/modules'
make[1]: *** [Makefile:1530: all-recursive] Error 1
make[1]: Leaving directory
'/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3'
make: *** [Makefile:1415: all] Error 2
 * ERROR: media-video/vlc-3.0.3-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info
'=media-video/vlc-3.0.3-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv
'=media-video/vlc-3.0.3-r1::gentoo'`.
 * The complete build log is located at
'/var/log/portage/media-video:vlc-3.0.3-r1:20180710-081824.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/media-video/vlc-3.0.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3'
 * S: '/var/tmp/portage/media-video/vlc-3.0.3-r1/work/vlc-3.0.3'

>>> Failed to emerge media-video/vlc-3.0.3-r1, Log file:

>>>  '/var/log/portage/media-video:vlc-3.0.3-r1:20180710-081824.log'

What shall I do?



Re: [gentoo-user] whats going on with python versions?

2018-07-10 Thread gevisz
2018-07-10 12:28 GMT+03:00 Neil Bothwick :
> On Tue, 10 Jul 2018 05:08:10 -0400, John Covici wrote:
>
>> In my last update which was about June 21 or so, lots of packages were
>> reinstalled to make python3.6 the default target for python3.  I don't
>> have any targets like that in my make.conf, so it was done -- about
>> 200 reinstalls.
>
> It was a profile change.
>
>>  Now when I look at my latest update, a lot of them
>> are going back to 3.5 instead.  What is going on here -- are the devs
>> a bit too hasty or what?
>
> There were problems with some packages not being compatible with 3.6.
> Since you have been running that profile for a while, it is unlikely you
> are affected, so you can keep the default at 3.6 by adding this
> to /etc/portage/profile/make.defaults
>
> PYTHON_TARGETS="python2_7 -python3_5 python3_6"
> PYTHON_SINGLE_TARGET="-python3_5 python3_6"
>
>> I am on the unstable, but this is rediculous.
>
> It's not ridiculous, it's exactly what the testing tree is for, to find
> problems like this. The testing tree changes quickly, by its very nature,
> leaving nearly three weeks between updates is probably a bit too long.

The same happened in stable as well.



Re: [gentoo-user] whats going on with python versions?

2018-07-10 Thread Neil Bothwick
On Tue, 10 Jul 2018 05:08:10 -0400, John Covici wrote:

> In my last update which was about June 21 or so, lots of packages were
> reinstalled to make python3.6 the default target for python3.  I don't
> have any targets like that in my make.conf, so it was done -- about
> 200 reinstalls.

It was a profile change.

>  Now when I look at my latest update, a lot of them
> are going back to 3.5 instead.  What is going on here -- are the devs
> a bit too hasty or what?

There were problems with some packages not being compatible with 3.6.
Since you have been running that profile for a while, it is unlikely you
are affected, so you can keep the default at 3.6 by adding this
to /etc/portage/profile/make.defaults

PYTHON_TARGETS="python2_7 -python3_5 python3_6"
PYTHON_SINGLE_TARGET="-python3_5 python3_6"

> I am on the unstable, but this is rediculous.

It's not ridiculous, it's exactly what the testing tree is for, to find
problems like this. The testing tree changes quickly, by its very nature,
leaving nearly three weeks between updates is probably a bit too long.


-- 
Neil Bothwick

We never really grow up; we only learn how to act in public.


pgpBB0GxIq7Ep.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] how to set python version for one user

2018-07-10 Thread Helmut Jarausch

On 07/10/2018 10:23:05 AM, p...@xvalheru.org wrote:

Hi,

I need to set specific python version to a user and I don't want to  
set
it up for whole system. Is it possible? If so how to do it. All I  
found

is about setting for whole system.

Thanks

Pat



A simple method would be to set up the PATH for this user to prepend a  
local folder,

.e.g  $HOME/bin

Then copy (or symlink) the desired Python version from /usr/bin to that  
folder under

a different name (i.e. without the (full) version number)

Helmut




Re: [gentoo-user] how to set python version for one user

2018-07-10 Thread Alexander Kapshuk
On Tue, Jul 10, 2018 at 11:23 AM  wrote:
>
> Hi,
>
> I need to set specific python version to a user and I don't want to set
> it up for whole system. Is it possible? If so how to do it. All I found
> is about setting for whole system.
>
> Thanks
>
> Pat
>
> 
> Freehosting PIPNI - http://www.pipni.cz/
>
>
How about this?
echo alias python='python2.7' >> ~user/.bash_profile



[gentoo-user] whats going on with python versions?

2018-07-10 Thread John Covici
In my last update which was about June 21 or so, lots of packages were
reinstalled to make python3.6 the default target for python3.  I don't
have any targets like that in my make.conf, so it was done -- about
200 reinstalls.  Now when I look at my latest update, a lot of them
are going back to 3.5 instead.  What is going on here -- are the devs
a bit too hasty or what?  I am on the unstable, but this is
rediculous.  I am more concerned because some of the accessibility
stuff, I have to do by hand and make sure they go along with other
apps.

Any ideas as to this would be appreciated.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



[gentoo-user] how to set python version for one user

2018-07-10 Thread pat

Hi,

I need to set specific python version to a user and I don't want to set 
it up for whole system. Is it possible? If so how to do it. All I found 
is about setting for whole system.


Thanks

Pat


Freehosting PIPNI - http://www.pipni.cz/