[Spambayes] 1.0rc1:sb_imapfilter fails after install over b1

Tony Meyer tameyer at ihug.co.nz
Tue Jun 8 01:04:24 EDT 2004


> I have been running b1 quite happily but after installing rc1 
> on top of b1, I get an exception as shown below. It also fails
> to import msginfoDB when starting filtering mode.
[...]
>   File "C:\Python23\lib\site-packages\spambayes\Stats.py", 
> line 34, in ?
>     from spambayes.message import msginfoDB
> ImportError: cannot import name msginfoDB

You're not using a storage type that isn't dbm or pickle (like mysql or
postgres) are you?  If so, then this is a known bug with 1.0rc1.  A fix has
been checked in and will be in a future release.  You should be able to grab
the updated message.py from cvs (or viewcvs) and drop it in and everything
should work again.

If you are using dbm or pickle, could you add this at line 220 to
C:\Python23\lib\site-packages\spambayes\message.py and let us know what it
prints out?

"""
try:
    print options["Storage", "persistent_use_database"]
    print msginfoDB
except:
    pass
"""

=Tony Meyer

---
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes. This
way, you get everyone's help, and avoid a lack of replies when I'm busy.




More information about the Spambayes mailing list