On 06/30/2015 10:51 AM, Guy Goodrick wrote:
> Hi,
> 
> I've just installed fail2ban, 'rpm -qa' shows:
> 
> SuSEfirewall2-fail2ban-0.8.14-2.24.1.noarch
> fail2ban-0.8.14-2.24.1.noarch

That is a pretty old version, you may be better off installing the latest from 
source.

> 
> However when I try 'fail2ban-client -h' I get:
> 
> "
>    File "/usr/bin/fail2ban-client", line 32
>      except ImportError, e:
>                        ^
> SyntaxError: invalid syntax
> "
> 
> My Python is version 3.3.5

You could try 2to3, which should fix most of the Python 2 vs 3 
incompatibilities, but you'll still be using an old version.

Checkout fail2ban-2to3 for an example:
https://github.com/fail2ban/fail2ban/blob/master/fail2ban-2to3

> 
> Can anyone help please? I found one similar query via Google, and the 
> solution was to find a new RPM source. I got this installation from the 
> fail2ban.org downloads page. Can anyone suggest another good source? Or 
> another solution?
> 
> I'm not very experienced with Linux, so apologies in advance for 
> stoopid questions etc...
> 
> Guy
> 
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Fail2ban-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fail2ban-users
> 

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to