Hello list,

I have the following daily cron job on my Debian box:

/usr/bin/sb_mboxtrain.py -g /home/amedee/Maildir/.ztrain.confirmed-ham
-s /home/amedee/Maildir/.ztrain.confirmed-spam -n -r

Since I upgraded from Sarge to Lenny (which also upgraded python), this
gives the following error:

Traceback (most recent call last):
  File "/usr/bin/sb_mboxtrain.py", line 53, in <module>
    from spambayes import hammie, storage, mboxutils
ImportError: No module named spambayes

I searched for this error, and found the following:
http://www.nabble.com/Bug-476274:-spambayes:-seems-to-break-completely-after-Python-transition-td16703442.html

Aha! Spambayes is in the Debian repos? That's good news.
I installed Spambayes manually, a very long time ago, and now I decided
to give the official Debian version a try:

$ apt-cache search -f spambayes
Package: spambayes
Priority: optional
Section: mail
Installed-Size: 1292
Maintainer: Alexandre Fayolle <[email protected]>
Architecture: all
Version: 1.0.4-5.1
Depends: python, python-central (>= 0.6.7)
Filename: pool/main/s/spambayes/spambayes_1.0.4-5.1_all.deb
Size: 348394
MD5sum: 6cb343fc097d36e9632771eb5cb80e4e
SHA1: bb77ca977f202a011545fabefd46786eda30513c
SHA256: 9037d3954a6715b84c5c89f8c0b6f7536c7f772dfdae8fd73ab76f54fa98df9a
Description: Python-based spam filter using statistical analysis
 SpamBayes uses a different set of algorithm to most statistical spam
 filters, which enables to dramatically lower the number of legitimate
 mail classified as spam, through the introduction of an 'unsure'
 category.
 .
 SpamBayes can be used as a POP3 or an IMAP proxy, as well as a simple
 mail filter for use with procmail.
Homepage: http://spambayes.sourceforge.net
Python-Version: current
Tag: implemented-in::python, interface::daemon, mail::filters,
network::server, role::program, use::checking, works-with::mail


OK... this version of Spambayes doesn't give an error any more, but it
is the 1.0.4 version, and before I was working with the "bleeding edge"
beta version.

Is it enough to just uninstall the debian version, and reinstall the
latest beta from sourceforge? Will that install correctly into the new
python?

TIA,
Amedee
_______________________________________________
[email protected]
http://mail.python.org/mailman/listinfo/spambayes
Info/Unsubscribe: http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html

Reply via email to