[Spambayes] Installation problem

K. H. Gowranga gowranga at serc.iisc.ernet.in
Fri Oct 17 09:09:07 EDT 2003


Hello,


On Wed, 15 Oct 2003, Tony Meyer wrote:

> > Compilation and installation went through 
> > well but permissions to create a new database ".hammiedb" 
> > requires root to do it. Kindly suggest how this can be done 
> > by a user himself.
> 
> Set spambayes to create a database somewhere that the user has permission.
> ~/.hammiedb should work, I would imagine.  You're after the
> persistent_storage_name option.

File ~/.spambayesrc containing the following 3 lines is in place

[Storage]
persistent_use_database = True
persistent_storage_file = ~/.hammie.db
 
> 
> > And on running sb_filter.py, the user gets the error:
> > Traceback (most recent call last):
> >   File "/usr/local/bin/sb_filter.py", line 53, in ?
> >     from spambayes import hammie, Options, mboxutils
> > ImportError: No module named spambayes
> 
> This looks like installation didn't go well after all.  Do you have a
> "spambayes" directory in your Python site-packages directory?
> 

 "spambayes" directory exists very much in Python site-packages directory.

While installation of spambayes-1.06a and spambayes-1.05a was not possible
at all on AIX 4.3.2 (with Python 2.3), spambayes-1.04a gave error on using
the following command after installation

python hammie.py -g '/var/spool/mail/gowranga' -s '~gowranga/mail/spam' -d
'~gowranga/.hammie.db'

Traceback (most recent call last):
  File "hammie.py", line 4, in ?
    import spambayes.hammiebulk
  File
"/home/gowranga/src/spambayes/spambayes/hammiebulk.py",
line
62, in ?
    DEFAULTDB =
os.path.expanduser(options.hammiefilter_persistent_storage_file)
AttributeError: 'OptionsClass' object has no attribute
'hammiefilter_persistent_storage_file'

Kindly suggest a solution to this. Thanks in advance.

-gowranga





More information about the Spambayes mailing list