[Spambayes] exception in mail
Martin Rowe
martin at dbg400.net
Mon Oct 6 02:01:13 EDT 2003
On Sunday 05 October 2003 22:34, Syver Enstad wrote:
> X-Spambayes-Exception: Traceback (most recent call last):
> . File "I:\build\spambayes-1.0a6\scripts\sb_server.py", line 442, in
> onRetr . evidence=True)
> . File
> "D:\devtools\Python23\Lib\site-packages\spambayes\classifier.py", line
> 158, in chi2_spamprob . clues = self._getclues(wordstream) . File
> "D:\devtools\Python23\Lib\site-packages\spambayes\classifier.py", line
> 395, in _getclues . prob = self.probability(record)
> . File
> "D:\devtools\Python23\Lib\site-packages\spambayes\classifier.py", line
> 242, in probability . assert hamcount <= nham .AssertionError
>
> I get this exception in almost all mails I get.
Since moving to 1.0a6 I get something similar pretty frequently too:
X-Spambayes-Exception: Traceback (most recent call last):
. File "/usr/bin/sb_server.py", line 439, in onRetr
. msg.setId(state.getNewMessageName())
. File "/usr/lib/python2.3/site-packages/spambayes/message.py", line
193,
in setId . msginfoDB._getState(self)
. File "/usr/lib/python2.3/site-packages/spambayes/message.py", line
131,
in _getState
. (msg.c, msg.t) = self.db[msg.getId()]
. File "/usr/lib/python2.3/shelve.py", line 118, in __getitem__
. f = StringIO(self.dict[key])
. File "/usr/lib/python2.3/bsddb/__init__.py", line 116, in __getitem__
. return self.db[key]
.DBRunRecoveryError: (-30982, 'DB_RUNRECOVERY: Fatal error, run database
recovery -- fatal region error detected; run recovery')
This is inserted into each mail instead of the usual spam/ham/unsure
header line. Yesterday I tried switching from using dbhash to a pickle,
and a fresh hammie.db to see if it made any difference, but it threw up
this error again overnight :(
Any ideas/suggestions?
Using sb_server.py from 1.0a6 on Debian GNU/Linux (unstable) with Python
2.3.1.
Regards, Martin
--
martin at dbg400.net AIM/Gaim: DBG400dotNet http://www.dbg400.net /"\
DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open \ /
Source free test environment tools and others (file/spool/misc) X
Debian GNU/Linux | ASCII Ribbon Campaign against HTML mail & news / \
More information about the Spambayes
mailing list