[users] Denyhosts on RHEL3 - problem with Python version

Dag Wieers dag at wieers.com
Tue Feb 28 09:31:56 CET 2006


On Thu, 23 Feb 2006, Chris Croome wrote:

> FYI Dag's Denyhosts package [1] is packaged for RHEL3 however this depends on a
> later version of Python than RHEL3 comes with -- this is the error message you
> get when trying to start it:
> 
>   starting DenyHosts:    /usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf
>   Python >= 2.3 required.  You are using: 2.2.3 (#1, Feb  2 2005, 12:20:51) 
>   [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-49)]
>   
>   ######################################################################
>   
>   Visit http://www.python.org and download a more recent version of
>   Python.
>   
>   You should install this version in addition to your current version
>   (rather than upgrading your current version) because your system might
>   depend on the current version.  After installing the newer version, for
>   instance version 2.4, simply invoke DenyHosts explicitly with the new
>   version of python, eg:
>   
>   $ python2.4 /usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf
>   
>   ######################################################################
> 
> As suggested I guess installing a source python in /usr/local is probably the
> easiest way to fix this... Unless anyone has a later python rpm that
> installs in addition to the RHEL3 one...

Thanks for the feedback Chris.

But I'm afraid we cannot do that (ship a newer python in /usr/local/bin). 
I've disabled the denyhosts packages and fixed the SPEC file to require 
python >= 2.3, this effectively means there is no denyhosts available for 
EL3.

The easiest path to have this for EL3 is to fix denyhosts to not require 
2.3 or higher specifically but at least also works on python 2.2+

It shouldn't be that hard, eg. I have a regular expression for dstat that 
rewrites my python code to work on python 1.5. Of course that will not 
work for denyhosts as-is.


Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]



More information about the users mailing list