[Spambayes] Problem trying to setup the IMAP filter

Kenny Pitt kennypitt at hotmail.com
Thu Jul 15 22:56:34 CEST 2004

Rick Friedman wrote:
> Well, I go to the /spambayes-1.0rc2/scripts/ folder. From the command
> line I run the above mentioned command. However, I then get the
> following error:  
> Traceback (most recent call last):
> File "sb_imapfilter.py", line 119, in ?
> from spambayes.Options import options, get_pathname_option
> ImportError: No module named spambayes.Options

You have 2 choices:

1. Set the environment variable PYTHONPATH to your top-level SpamBayes
source directory ("/spambayes-1.0rc2") before running the sb_imapfilter
2. Run "setup.py install" from the top-level source directory to install the
SpamBayes libraries into your main Python directory before running the
script (this only needs to be done once unless you tweak any of the source
code, in which case you'll need to install again to apply your updates).

Kenny Pitt

More information about the Spambayes mailing list