Marconi wrote:

> At 8:25 PM -0500 7/29/07, René Berber sent email 
> regarding Re: [Denyhosts-user] Getting denyhosts 
> running on OS X:
>> You don't copy anything, you install it using the right python, i.e.
>>
>> /usr/local/bin/python2.5 setup.py install
> 
> I did that. I also changed the symbolic link at 
> /usr/bin/python so it links to the newer python.
> 
> lrwxr-xr-x   1 root  wheel  24 Jul 29 18:56 
> /usr/bin/python -> /usr/local/bin/python2.5
> 
>       Still, when I try to start the denyhosts daemon:
> 
> smtp:/usr/bin root# /usr/share/denyhosts/daemon-control start
> starting DenyHosts:    /usr/bin/env python 
> /Library/Frameworks/Python.framework/Versions/2.5/bin/denyhosts.py 
------------------------------------------------^^^
Now we are using the right python.

Did you re-install DenyHosts?

The general problem with changing versions of python is that not only the
interpreter has to be changed but also all the modules have to be re-installed.

> --daemon --config=/usr/share/denyhosts/denyhosts.cfg
> Traceback (most recent call last):
>    File 
> "/Library/Frameworks/Python.framework/Versions/2.5/bin/denyhosts.py", 
> line 164, in <module>
>      first_time, noemail, daemon)

This looks like a problem in your configuration of DenyHosts, I have it in
/usr/share/denyhosts/deyhosts.cfg, look at the line that defines SECURE_LOG (is
at the beginning).  It says that for Mac OS X you should have:

SECURE_LOG = /private/var/log/asl.log

Notice no "#" at the beginning, all other definitions (above and below) should
have the pound symbol so they are commented out.

[snip]
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/re.py", 
> line 233, in _compile
>      raise error, v # invalid expression
> error: unknown specifier: ?P&

This last error is really strange, did you change anything in denyhosts.cfg?
-- 
René Berber


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to