I installed fail2ban using this command on Amazon Linux
yum install fail2ban
My epel repository is defined as
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
I got this error when I tried to start the service
service fail2ban start
Starting fail2ban: Traceback (most recent call last):
File "/usr/bin/fail2ban-client", line 37, in <module>
from fail2ban.version import version
ImportError: No module named fail2ban.version
I've tried this fix in this bug report using this diff, which isn't merged into the script I have. It didn't make any difference. I've tried also tried this but I have no idea how it's meant to work, if you're meant to run anything, etc.
Can anyone suggest how to get fail2ban to work on Amazon Linux?
Note below is what was installed with fail2ban