On Tue, 30 Jun 2015, Lee Clemens wrote: | |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 |
Thanks, Annoyingly I can't find 2to3 on my PC, or at least I can only find: /usr/lib64/python3.3/lib2to3 /usr/lib64/python2.7/lib2to3 I copied the script from the link above and ran it as a shell script but '2to3' is an unknown command. However I ploughed on and instead downloaded & decompressed the source, then ran setup.py with python2.7. It seemed to work (or at least 'fail2ban-client -h' now seems to work. I will try playing with the settings. I'm assuming there may be rocky roads ahead unless I can run 2to3 so it would be good to find it if anyone has any ideas where it might be...?! I don't see it in any of my repos either but maybe I'm looking for the wrong thing. ------------------------------------------------------------------------------ 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
