At 6:41 PM -0500 7/30/07, René Berber sent email 
regarding Re: [Denyhosts-user] Starting denyhosts 
on OS X 10.3.x:
>
>Nothing that I can see.  Let's try some basic tests:
>
>1. Run python
>
>2. Inside the interpreter type:
>
>       import sys
>       print sys.path
>       ^D

ns1:~ root# python
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>  import sys
>>>  print sys.path
['', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', 
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages']
>>>
ns1:~ root#

>
>What's the path shown that includes "site-packages", is the same as above,
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages?

Apparently, yes.

>
>Does
>/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/DenyHosts
>exist? are the libraries there?

Yes and yes:
ns1:/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/DenyHosts
 
root# ls -l
total 528
-rw-r--r--   1 root    admin     13 16 Dec  2005 __init__.py
-rw-r--r--   1 root    admin    204 30 Jul 10:47 __init__.pyc
-rw-r--r--   1 root    admin   3972 26 Apr  2006 allowedhosts.py
-rw-r--r--   1 root    admin   5200 30 Jul 10:47 allowedhosts.pyc
-rw-r--r--   1 root    admin   1914  7 Apr  2006 constants.py
-rw-r--r--   1 root    admin   1531 30 Jul 10:47 constants.pyc
-rw-r--r--   1 root    admin   1662  8 Feb  2006 counter.py
-rw-r--r--   1 root    admin   3665 30 Jul 10:47 counter.pyc
-rw-r--r--   1 root    admin   4275 16 Dec  2005 daemon.py
...

>
>(stop if you found the problem solution)
>
>3. Try `python --force setup.py install`, this 
>will install all files again (so
>you can see what went where), or `python --dry-run --force setup.py install`.

Python complains about the "--force..." and "--dry..."
Unknown option: --
usage: 
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/
 
Mac OS/Python [option] ... [-c cmd | -m mod | 
file | -] [arg] ...


>
>Obviously I don't know what went wrong, so I'm just suggesting some tests to
>find out.

And I certainly appreciate it.

I'm totally new to python.


-------------------------------------------------------------------------
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