Bug 755980 - [abrt] spambayes-1.1-0.3.a6.fc15: classifier.py:287:probability:AssertionError: Token seen in more ham than ham trained.
Summary: [abrt] spambayes-1.1-0.3.a6.fc15: classifier.py:287:probability:AssertionErro...
Keywords:
Status: CLOSED DUPLICATE of bug 749490
Alias: None
Product: Fedora
Classification: Fedora
Component: spambayes
Version: 17
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:31ac72c2241224f465d94526998...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-22 15:14 UTC by Matthieu Pupat
Modified: 2012-09-03 09:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-03 09:42:45 UTC
Type: ---


Attachments (Terms of Use)

Description Matthieu Pupat 2011-11-22 15:14:11 UTC
abrt version: 2.0.3
architecture:   x86_64
cmdline:        /usr/bin/python /usr/bin/sb_filter.py -d /home/mail/sylvie/.hammie.db
component:      spambayes
executable:     /usr/bin/sb_filter.py
kernel:         2.6.40.6-0.fc15.x86_64
os_release:     Fedora release 15 (Lovelock)
package:        spambayes-1.1-0.3.a6.fc15
reason:         classifier.py:287:probability:AssertionError: Token seen in more ham than ham trained.
time:           Wed Nov  2 22:10:02 2011
uid:            501

backtrace:
:classifier.py:287:probability:AssertionError: Token seen in more ham than ham trained.
:
:Traceback (most recent call last):
:  File "/usr/bin/sb_filter.py", line 277, in <module>
:    main()
:  File "/usr/bin/sb_filter.py", line 268, in main
:    action(msg)
:  File "/usr/bin/sb_filter.py", line 186, in filter
:    return self.h.filter(msg)
:  File "/usr/lib/python2.7/site-packages/spambayes/hammie.py", line 149, in filter
:    debug, train)
:  File "/usr/lib/python2.7/site-packages/spambayes/hammie.py", line 104, in score_and_filter
:    prob, clues = self._scoremsg(msg, True)
:  File "/usr/lib/python2.7/site-packages/spambayes/hammie.py", line 33, in _scoremsg
:    return self.bayes.spamprob(tokenize(msg), evidence)
:  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 169, in chi2_spamprob
:    clues = self._getclues(wordstream)
:  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 472, in _getclues
:    tup = self._worddistanceget(word)
:  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 487, in _worddistanceget
:    prob = self.probability(record)
:  File "/usr/lib/python2.7/site-packages/spambayes/classifier.py", line 287, in probability
:    assert hamcount <= nham, "Token seen in more ham than ham trained."
:AssertionError: Token seen in more ham than ham trained.
:
:Local variables in innermost frame:
:spamcount: 181
:self: <spambayes.storage.DBDictClassifier instance at 0xded320>
:record: WordInfo(181, 191)
:nspam: 181.0
:hamcount: 191
:nham: 190.0

comment:
:Ran
:
:/usr/bin/sb_filter.py -d $MAIL_DIRECTORY/.hammie.db -g -f
:
:with $MAIL_DIRECTORY missing because the disk where it is was missing

Comment 1 Fedora End Of Life 2012-08-07 18:00:12 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Matthieu Pupat 2012-09-03 09:37:15 UTC
Still present in spambayes.noarch.1.1-0.4.a6.fc17

Comment 3 Matthieu Pupat 2012-09-03 09:37:45 UTC
$ /usr/bin/sb_filter.py -d/home/notme/.hammie.db -g -f
Traceback (most recent call last):
  File "/usr/bin/sb_filter.py", line 277, in <module>
    main()
  File "/usr/bin/sb_filter.py", line 254, in main
    h.newdb()
  File "/usr/bin/sb_filter.py", line 178, in newdb
    self.open('n')
  File "/usr/bin/sb_filter.py", line 166, in open
    self.h = hammie.open(self.dbname, self.usedb, self.mode)
  File "/usr/lib/python2.7/site-packages/spambayes/hammie.py", line 272, in open
    return Hammie(storage.open_storage(filename, useDB, mode), mode)
  File "/usr/lib/python2.7/site-packages/spambayes/storage.py", line 998, in open_storage
    return klass(data_source_name, mode)
  File "/usr/lib/python2.7/site-packages/spambayes/storage.py", line 154, in __init__
    self.load()
  File "/usr/lib/python2.7/site-packages/spambayes/storage.py", line 180, in load
    self.dbm = dbmstorage.open(self.db_name, self.mode)
  File "/usr/lib/python2.7/site-packages/spambayes/dbmstorage.py", line 70, in open
    return f(db_name, mode)
  File "/usr/lib/python2.7/site-packages/spambayes/dbmstorage.py", line 40, in open_best
    return f(*args)
  File "/usr/lib/python2.7/site-packages/spambayes/dbmstorage.py", line 20, in open_dbhash
    return bsddb.hashopen(*args)
  File "/usr/lib64/python2.7/bsddb/__init__.py", line 364, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory')

Comment 4 Matthieu Pupat 2012-09-03 09:42:45 UTC

*** This bug has been marked as a duplicate of bug 749490 ***


Note You need to log in before you can comment on or make changes to this bug.