[Spambayes] Installation problem

Tony Meyer tameyer at ihug.co.nz
Mon Oct 20 02:35:39 EDT 2003


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

How did you resolve this in the end?

> While installation of spambayes-1.06a and spambayes-1.05a was 
> not possible at all on AIX 4.3.2 (with Python 2.3), 

What went wrong with 1.0a6 and 1.0a5?  Or is it these two that give the
above error and 1.0a4 doesn't?

> spambayes-1.04a gave error on using the following command 
> after installation
[...]
> AttributeError: 'OptionsClass' object has no attribute 
> 'hammiefilter_persistent_storage_file'

This looks like it's using a combination of the 1.0a4 and 1.0a6 files.
Using 1.0a4 isn't a solution, really; we need to get 1.0a6 working.  Remove
the spambayes directory in the Python scripts directory, to be sure that the
old scripts are gone.  Then redo the "setup.py install" command for 1.0a6.
Does the install complete correctly?  If you end up with the "no module
called spambayes" error, but do have the spambayes directory in your python
scripts directory, try setting the environment variable PYTHONPATH to point
to that spambayes directory.

=Tony Meyer




More information about the Spambayes mailing list