[Spambayes] Installation problem

Tony Meyer tameyer at ihug.co.nz
Tue Oct 21 00:14:08 EDT 2003


> I tried all that you have suggested but get the same error:
> 
> spambayes : python setup.py install
> running install
> running build
> running build_py
> running build_scripts
> running install_lib
> copying build/lib/spambayes/cdb.py -> 
> /usr/local/lib/python2.3/site-packages/spambayes
> error: 
> /usr/local/lib/python2.3/site-packages/spambayes/cdb.py: 
> Permission denied

This is why you end up with a mixture of old and new files - setup.py can't
copy the files into the site-packages/spambayes directory.  It needs to
either have permission to do that (it only happens on install), or you need
to install spambayes to some other directory where there is permission, and
set PYTHONPATH to include the path to that directory.  IIRC setup.py can
take arguments to do that - the python documentation will have instructions
about that.

[...]
> (The above when created by "root" creates the database 
> without complaining about the Importerror. Error on "cdb.py" 
> buildup does'nt appear too)

So everything works when you run as root?  You should be able to install
spambayes as root, but then use it as a regular user (assuming your users
have permission to access python and the python site-packages directory).

What happens if you just run "python" and, from the interactive interpreter,
type "import spambayes"?  If that fails, what about "import sys"?  If that
works, what about importing anything else in the site-packages directory?

=Tony Meyer




More information about the Spambayes mailing list