From: Andrew S. <an...@sw...> - 2005-10-06 18:00:13
|
I have successfully installed fail2ban from the latest RPM available (0.5.2) onto Red Hat Enterprise Linux ES release 2.1 (Panama). I get the following error when attempting to start it with: # /etc/init.d/fail2ban start Starting fail2ban: Traceback (innermost last): File "/usr/bin/fail2ban", line 29, in ? import sys, traceback, logging ImportError: No module named logging I'm not much of a python person. Could there be some critical python package I'm missing? The installation did not complain about any missing dependencies. I have the following python-ish packages installed: # rpm -qa | grep -i python python-xmlrpc-1.5.1-7.x.3 python-devel-2.2.1-17 python-popt-0.8.8-7.x.2 rpm-python-4.0.4-7x.20 mod_python-2.7.8-3.1 python-1.5.2-43.72 python-devel-1.5.2-43.72 I also tried building the package from the SRPMS, but that was just a world of hurt (must be missing even more python build things). -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. |
From: Yaroslav H. <li...@on...> - 2005-10-06 18:49:37
|
Hi Andrew, logging module was introduced to standard python distribution since python2.3 I'm not familiar with RH systems, but do you have python2.3 by any chance in the distribution? or may be there is rpm such as python-logging? Otherwise you might try to get it from http://www.red-dove.com/python_logging.html#download and install manually Hope that helps -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] |
From: Andrew S. <an...@sw...> - 2005-10-06 20:20:43
|
Thanks for the info. Ugh. What I wouldn't give to have all this on a Debian system (I'm forced to use RHES2.1). Dependency hell. I can't build python-2.3 because autoconf is too old (and there's too many dependency problems with 2.3 RPMs). I found a python-2.2 package on rpmfind.net that would let me build the red_dove logging kit. Now when I try to start fail2ban, I get the following error: Starting fail2ban: Traceback (most recent call last): File "/usr/bin/fail2ban", line 59, in ? pidLock.remove() File "/usr/lib/fail2ban/utils/pidlock.py", line 63, in remove os.remove(self.path) AttributeError: __impl instance has no attribute 'path' Not sure if I have a screwed up python install now or not. Really, really wish this was a Debian box. Sweet Debian. *ahhhkglg* On Thu, 6 Oct 2005, Yaroslav Halchenko wrote: > logging module was introduced to standard python distribution since > python2.3 > I'm not familiar with RH systems, but do you have python2.3 by any > chance in the distribution? > or may be there is rpm such as python-logging? > > Otherwise you might try to get it from > http://www.red-dove.com/python_logging.html#download > and install manually -- Andrew B. Sweger -- The great thing about multitasking is that several things can go wrong at once. |
From: Yaroslav H. <li...@on...> - 2005-10-06 21:05:44
|
On Thu, Oct 06, 2005 at 01:20:24PM -0700, Andrew Sweger wrote: > Thanks for the info. Ugh. What I wouldn't give to have all this on a > Debian system (I'm forced to use RHES2.1). Dependency hell. Well... in that case, if something went wrong you would bother me anyway -- I'm packaging fail2ban for Debian :-) > AttributeError: __impl instance has no attribute 'path' Was that a full content in which that occurred? I mean could you provide full output and also run fail2ban with debug option? if you upgrade to 0.5.4 (install from source?) then you would have an exception handler around so it might not crash that badly. Could you try? > Not sure if I have a screwed up python install now or not. I don't think so -- that seems to be just fail2ban problem: path is not initialized if conf is not yet read. Thus python crashes... we will fix it together. but I want to know why it fell before that -- I need more of information :-) > Really, really wish this was a Debian box. Sweet Debian. *ahhhkglg* You are 101% right - Debian rulez! :) -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] |