Package: fail2ban
Version: 0.6.0-1
Severity: important

when I run fail2ban or /etc/init.d/fail2ban start it reports this

# fail2ban -h
Traceback (most recent call last):
  File "/usr/bin/fail2ban", line 35, in ?
    import fail2ban
  File "/usr/share/fail2ban/fail2ban.py", line 32, in ?
    from firewall.firewall import Firewall
  File "/usr/share/fail2ban/firewall/firewall.py", line 29, in ?
    from utils.process import executeCmd
ImportError: No module named process

This is due to the fact that I have a utils directory on my python
path already (some local utilities) but no process module.

fail2ban should really insert directory near the front of sys.path,
not at the end (that is what I normally do anyway).

This patch fixes the problem...

--- /usr/bin/fail2ban.orig      2005-12-17 23:45:15.000000000 +0000
+++ /usr/bin/fail2ban   2005-12-17 23:46:23.000000000 +0000
@@ -29,7 +29,7 @@
 import sys, traceback, logging
 
 # Appends our own modules path.
-sys.path.append("/usr/share/fail2ban")
+sys.path.insert(1, "/usr/share/fail2ban")
 
 # Now we can import our modules.
 import fail2ban


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (70, 'stable'), (50, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-s1-p4smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fail2ban depends on:
ii  iptables                      1.3.3-2    Linux kernel 2.4+ iptables adminis
ii  python                        2.3.5-3    An interactive high-level object-o

fail2ban recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to