> I am running FreeBSD and just installed python and denyhosts.  When I
> execute denyhosts I get the following set of errors:
>
> execonn# ./denyhosts.py
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "./denyhosts.py", line 2, in ?
>     import os
> ImportError: No module named os
> execonn#
>
> I tried putting $PYTHONHOME to point to where python is located, both
> with and without the python on the end of the path, but got the same
> results.  If I put --debug or -v on the command line, I still get the
> same results.  I tried changing the first line of the script to where
> python is located, but still get the same results.

I'm not a FreeBSD person, but this looks like your Python installation is
the problem.  The python executable is looking for its library (*.py)
files and not finding them.  Run the following commands and post the
output back here:

  which python
  pkg_info | grep python
  python -c 'import sys; print sys.path'

And perhaps the output of 'python -v denyhosts.py' might be helpful (that
is what the suggestion about using the -v switch is about) if it is not
too large.
Try to look around and see if you even have the library files on your
machine.  You should have a file called string.py, usually somewhere like
/usr/lib/pythonX.Y or /usr/local/lib/pythonX.Y.  If you don't have it,
your python installation is incomplete and you should probably try
reinstalling python.

-- 
James Abbatiello
http://www.stardrifter.org/





_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to