Re: [CentOS] Semi-OT: install python package in userspace

2018-04-10 Thread Keith Keller
On 2018-04-10, Richard Grainger  wrote:
> If you can use python3 rather than python2, it looks like the
> dependencies in the standard repos are new enough.

SCL might be an option for providing a more recent python.  I'm not sure
if scikit is in SCL too, but I'm pretty sure numpy is, and scikit can be
installed into a smaller virtualenv.

--keith


-- 
kkel...@wombat.san-francisco.ca.us


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Semi-OT: install python package in userspace

2018-04-10 Thread David C. Miller


David Miller.

- Original Message -
> From: "m roth" 
> To: "CentOS mailing list" 
> Sent: Friday, April 6, 2018 12:04:43 PM
> Subject: Re: [CentOS] Semi-OT: install python package in userspace

> Valeri Galtsev wrote:
> 
 On Fri, 6 Apr 2018 17:25 ,  wrote:

> CentOS 7 box. As there's no package in any of the repos, we're trying
> to install scikit-learn in the user's space. It refuses. My late try
> was,
> after d/l a .whl from last year, hoping that would work with the numpy
> package in the regular repos, I did a pip install --user
> scikit-learn..., and it still seems to want to write to system space:
>  OSError: [Errno 13] Permission denied:
> '/usr/lib64/python2.7/site-packages/numpy-1.7.1.dist-info
>
> Anyone got any pointers?
> 
>> Mark, python is a "sneaky snake" ;-) and some modules may require
>> particular version of dependencies, therefore they may ignore your
>> system wide numpy (even though it may just may be compatible with them),
>> and may demand latest version of numpy. Which will explain pip (or
>> other) attempting to pull dependencies which allegedly are available
>> system wide already.
>>
>> Just speculating, your own research on your particular issue may give
>> your better answer.
> 
> Well, my manager came back, and he's got me using virtenv. Having read
> about it, I like it.  Oh, and the issue with the system numpy in
> site-packages was that, for some reason, it was *not* world-readable.
> Fixed that.
> 
> So, I'm working on trying to install scipy in the virtenv... and for
> unknown reasons, it simply can't find the system libs. I did this before
> the last attempt to
> export LAPACK=/usr/lib64/liblapack.so.3
> export BLAS=/usr/lib64/libblas.so.3
> and just added export LD_LIBRARY_PATH=/usr/lib64
> Still can't find them.
> 
> Clues on this one?
> 
>mark

Mark,

You might also want to look at conda for managing a self contained python and 
all the crazy external dependencies. Being in a research environment means 
these people will probably come back with lots of requests for other modules 
and external dependencies like tensorflow, qt5, hdf5, etc.  Conda handles 
building the snowflake versions for all that junk.

David.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] XScreenSaver

2018-04-10 Thread Nicolas Kovacs
Le 08/04/2018 à 14:53, Jonathan Billings a écrit :
> It appears that the spec file actually patches xscreensaver to change
> the time bomb date to be the build time, so you’d only need to
> rebuild it to make it stop. (The EPEL maintainer could too)
> 
> https://src.fedoraproject.org/rpms/xscreensaver/blob/epel7/f/xscreensaver.spec#_440
>

I just rebuilt XScreenSaver from the EPEL SRPM, and the annoying popup
disappeared indeed. I'll just put the resulting packages in my Yum repo,
along with a reminder to rebuild them once a year.

Thanks!

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] XScreenSaver

2018-04-10 Thread Valeri Galtsev

On Mon, April 9, 2018 8:34 pm, Stephen John Smoogen wrote:
> On 9 April 2018 at 04:47, Tom Grace 
> wrote:
>> On 09/04/2018 07:47, Nicolas Kovacs wrote:
>>> I didn't know a screensaver was that critical.
>>
>> It's critical in that XScreenSaver deals with locking the screen/dealing
>> with passwords. I believe the fancy animation bits are separate.
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
>
> xscreensaver is security critical for the following reasons:
> 1. Several of the screensavers take user input which may not be the
> main user. If the software has a security problem. those plugins could
> overwrite the users data.
> 2. If the user is expecting that the xscreensaver is locking out a
> user and it does not then that is security related
> 3. The way X works is that every X application can listen to all mouse
> and keyboard actions. This also has a security context.
>
> For many sites, any of these make Xscreensaver into a high security
> item. It makes perfect sense from jwz's point of view because several
> times something 'simple' in an xscreensaver code has turned into a
> meltdown somewhere. And the fact that people email him before emailing
> the EPEL maintainer or opening a bugzilla about it says his time is
> better served saying "not my problem mate."

Thanks, Stephen, for returning the sanity to the World!

Valeri

>
> --
> Stephen J Smoogen.
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>



Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 158, Issue 1

2018-04-10 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CESA-2018:0647 Important CentOS 6 thunderbird Security Update
  (Johnny Hughes)
   2. CESA-2018:0649 Important CentOS 6 libvorbis   Security Update
  (Johnny Hughes)
   3. CESA-2018:0648 Important CentOS 7 thunderbird Security Update
  (Johnny Hughes)


--

Message: 1
Date: Mon, 9 Apr 2018 23:34:21 +
From: Johnny Hughes 
To: centos-annou...@centos.org
Subject: [CentOS-announce] CESA-2018:0647 Important CentOS 6
thunderbird Security Update
Message-ID: <20180409233421.ga10...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2018:0647 Important

Upstream details at : https://access.redhat.com/errata/RHSA-2018:0647

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

i386:
8faab804fa19089343fd1e489a02b3d351cec5544ed592b6dbec7a3006af99cf  
thunderbird-52.7.0-1.el6.centos.i686.rpm

x86_64:
647747711d64e16d5b2e1529f7e5974464bb0b510cdbcad045f08048dba0d0da  
thunderbird-52.7.0-1.el6.centos.x86_64.rpm

Source:
5089b20a8b1521a7ff70fc6ff5f053a6c6ab5ff2f6fa7f4a0a9af812c8774933  
thunderbird-52.7.0-1.el6.centos.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net
Twitter: @JohnnyCentOS



--

Message: 2
Date: Mon, 9 Apr 2018 23:35:22 +
From: Johnny Hughes 
To: centos-annou...@centos.org
Subject: [CentOS-announce] CESA-2018:0649 Important CentOS 6 libvorbis
Security Update
Message-ID: <20180409233522.ga10...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2018:0649 Important

Upstream details at : https://access.redhat.com/errata/RHSA-2018:0649

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

i386:
2e06e17e114f1fb82b38494b2a749d03a24ab1ad4c7bd5802ca8c7d6d604dcdb  
libvorbis-1.2.3-5.el6_9.1.i686.rpm
40e0518e9a1bca52011bbd00605f55bcdc2bf571dfc8b34847b3fa662c7bc55d  
libvorbis-devel-1.2.3-5.el6_9.1.i686.rpm
d833b6e19caceb7df39ca2bcc782f73f1b7774d7bd52abd6704ac29d778bb882  
libvorbis-devel-docs-1.2.3-5.el6_9.1.noarch.rpm

x86_64:
2e06e17e114f1fb82b38494b2a749d03a24ab1ad4c7bd5802ca8c7d6d604dcdb  
libvorbis-1.2.3-5.el6_9.1.i686.rpm
e2b276ee079787afa938fc33d26255a167e592670303c74656e84b96c09ace5b  
libvorbis-1.2.3-5.el6_9.1.x86_64.rpm
40e0518e9a1bca52011bbd00605f55bcdc2bf571dfc8b34847b3fa662c7bc55d  
libvorbis-devel-1.2.3-5.el6_9.1.i686.rpm
e043eec9adabbada05e9229f7669b1f1de85693265dd8fb98366b36ee23886a4  
libvorbis-devel-1.2.3-5.el6_9.1.x86_64.rpm
d833b6e19caceb7df39ca2bcc782f73f1b7774d7bd52abd6704ac29d778bb882  
libvorbis-devel-docs-1.2.3-5.el6_9.1.noarch.rpm

Source:
cf05cdba31b5c0bd71bbe2e333821dc586a9c2eddd8a6fe762c4d35ee836934d  
libvorbis-1.2.3-5.el6_9.1.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net
Twitter: @JohnnyCentOS



--

Message: 3
Date: Tue, 10 Apr 2018 00:06:05 +
From: Johnny Hughes 
To: centos-annou...@centos.org
Subject: [CentOS-announce] CESA-2018:0648 Important CentOS 7
thunderbird Security Update
Message-ID: <2018041605.ga24...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2018:0648 Important

Upstream details at : https://access.redhat.com/errata/RHSA-2018:0648

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

x86_64:
78c170024613cdf14dc70084dda0c83a321f6829959333ee0e6c518bc772c501  
thunderbird-52.7.0-1.el7.centos.x86_64.rpm




-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net
Twitter: @JohnnyCentOS



--

Subject: Digest Footer

___
CentOS-announce mailing list
centos-annou...@centos.org
https://lists.centos.org/mailman/listinfo/centos-announce


--

End of CentOS-announce Digest, Vol 158, Issue 1
***
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Semi-OT: install python package in userspace

2018-04-10 Thread Richard Grainger
If you can use python3 rather than python2, it looks like the
dependencies in the standard repos are new enough.  Do you want me to
have a go at packaging scikit-learn for python3 and adding it to the
repo?

On Tue, Apr 10, 2018 at 9:51 AM, Richard Grainger  wrote:
> Just had a look at scikit-learn.  An issue you have with the current
> version of this package is that is depends on NumPy (>= 1.8.2).  The
> version of NumPy in CentOS 7 base is 1.7.1. You may need to look at
> building a Python virtual environment.  You can google that ;)
>
> On Tue, Apr 10, 2018 at 9:43 AM, Richard Grainger  wrote:
>> I created the epypel (Extra Extra Python Packages for Enterprise
>> Linux) yum repo for exactly this reason:
>> https://harbottle.gitlab.io/epypel/
>>
>> There are a bunch of additional Python 2 and Python 3 packages there
>> and if you want any added, please put in a request here:
>> https://gitlab.com/harbottle/epypel/issues/new
>>
>> The repo does not upgrade any packages in base or EPEL, so should be
>> safe to use on most CentOS 7 systems.
>>
>> On Fri, Apr 6, 2018 at 5:25 PM,   wrote:
>>> CentOS 7 box. As there's no package in any of the repos, we're trying to
>>> install scikit-learn in the user's space. It refuses. My late try was,
>>> after d/l a .whl from last year, hoping that would work with the numpy
>>> package in the regular repos, I did a pip install --user scikit-learn...,
>>> and it still seems to want to write to system space: OSError: [Errno 13]
>>> Permission denied:
>>> '/usr/lib64/python2.7/site-packages/numpy-1.7.1.dist-info
>>>
>>> Anyone got any pointers?
>>>
>>>mark
>>>
>>> ___
>>> CentOS mailing list
>>> CentOS@centos.org
>>> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Semi-OT: install python package in userspace

2018-04-10 Thread Richard Grainger
Just had a look at scikit-learn.  An issue you have with the current
version of this package is that is depends on NumPy (>= 1.8.2).  The
version of NumPy in CentOS 7 base is 1.7.1. You may need to look at
building a Python virtual environment.  You can google that ;)

On Tue, Apr 10, 2018 at 9:43 AM, Richard Grainger  wrote:
> I created the epypel (Extra Extra Python Packages for Enterprise
> Linux) yum repo for exactly this reason:
> https://harbottle.gitlab.io/epypel/
>
> There are a bunch of additional Python 2 and Python 3 packages there
> and if you want any added, please put in a request here:
> https://gitlab.com/harbottle/epypel/issues/new
>
> The repo does not upgrade any packages in base or EPEL, so should be
> safe to use on most CentOS 7 systems.
>
> On Fri, Apr 6, 2018 at 5:25 PM,   wrote:
>> CentOS 7 box. As there's no package in any of the repos, we're trying to
>> install scikit-learn in the user's space. It refuses. My late try was,
>> after d/l a .whl from last year, hoping that would work with the numpy
>> package in the regular repos, I did a pip install --user scikit-learn...,
>> and it still seems to want to write to system space: OSError: [Errno 13]
>> Permission denied:
>> '/usr/lib64/python2.7/site-packages/numpy-1.7.1.dist-info
>>
>> Anyone got any pointers?
>>
>>mark
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Semi-OT: install python package in userspace

2018-04-10 Thread Richard Grainger
I created the epypel (Extra Extra Python Packages for Enterprise
Linux) yum repo for exactly this reason:
https://harbottle.gitlab.io/epypel/

There are a bunch of additional Python 2 and Python 3 packages there
and if you want any added, please put in a request here:
https://gitlab.com/harbottle/epypel/issues/new

The repo does not upgrade any packages in base or EPEL, so should be
safe to use on most CentOS 7 systems.

On Fri, Apr 6, 2018 at 5:25 PM,   wrote:
> CentOS 7 box. As there's no package in any of the repos, we're trying to
> install scikit-learn in the user's space. It refuses. My late try was,
> after d/l a .whl from last year, hoping that would work with the numpy
> package in the regular repos, I did a pip install --user scikit-learn...,
> and it still seems to want to write to system space: OSError: [Errno 13]
> Permission denied:
> '/usr/lib64/python2.7/site-packages/numpy-1.7.1.dist-info
>
> Anyone got any pointers?
>
>mark
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Semi-OT: install python package in userspace

2018-04-10 Thread Pete Biggs
On Mon, 2018-04-09 at 09:15 -0700, Paul Heinlein wrote:
> On Sat, 7 Apr 2018, Pete Biggs wrote:
> 
> > > Does CentOS changed the package management? :-)
> > 
> > Quite.
> > 
> > This is not an Ubuntu dig, but when I challenge some of the users 
> > about the more dangerous sudo's they try, inevitably they say they 
> > got the command from the net, and by that they usually mean Ubuntu 
> > forums.
> 
> Whether the instructions come from the Ubuntu forums or not, we 
> regularly experience the same thing: users unthinkingly following 
> instructions in a REAME or posted on a web page. My experience 
> suggests these folks are just on autopilot. We don't even follow up 
> any more on most of the alerts; they'll ask us if it's important. So 
> we rarely give out sudo on shared systems and when we do there's some 
> "extreme vetting" going on.

I very rarely follow up as well - it's just when they do something 
blatantly dangerous or when they do something multiple times.

> 
> Also, Python has such a mature virtual-environment setup that more 
> publicly posted instructions are using that route anyway.
> 

I've stopped installing random python modules - if it's not in the
standard repositories the users are told to install it in their $HOME.
If nothing else it's a good learning experience to do it.

P.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos