Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355779 - mail-filter/spambayes-1.1_alpha6-r1: Missing dependency on dev-python/bsddb3
Summary: mail-filter/spambayes-1.1_alpha6-r1: Missing dependency on dev-python/bsddb3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-21 01:34 UTC by David Bitseff
Modified: 2011-02-22 19:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Bitseff 2011-02-21 01:34:47 UTC
When the berkdb use flag was disabled for dev-lang/python-2.6.6-r1 on my arch the spambayes application stopped working.

Reproducible: Always

Steps to Reproduce:
1. Install spambayes-1.1_alpha6-r1.
2. Run /usr/bin/sb_mboxtrain.py.
3. Notice an error indicating that the spambayes couldn't opened the database.

Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/sb_mboxtrain.py", line 349, in <module>
    main()
  File "/usr/bin/sb_mboxtrain.py", line 328, in main
    h = hammie.open(pck, usedb, "c")
  File "/usr/lib64/python2.6/site-packages/spambayes/hammie.py", line 272, in open
    return Hammie(storage.open_storage(filename, useDB, mode), mode)
  File "/usr/lib64/python2.6/site-packages/spambayes/storage.py", line 998, in open_storage
    return klass(data_source_name, mode)
  File "/usr/lib64/python2.6/site-packages/spambayes/storage.py", line 154, in __init__
    self.load()
  File "/usr/lib64/python2.6/site-packages/spambayes/storage.py", line 180, in load
    self.dbm = dbmstorage.open(self.db_name, self.mode)
  File "/usr/lib64/python2.6/site-packages/spambayes/dbmstorage.py", line 70, in open
    return f(db_name, mode)
  File "/usr/lib64/python2.6/site-packages/spambayes/dbmstorage.py", line 40, in open_best
    return f(*args)
  File "/usr/lib64/python2.6/site-packages/spambayes/dbmstorage.py", line 20, in open_dbhash
    return bsddb.hashopen(*args)
AttributeError: 'NoneType' object has no attribute 'hashopen'
not updating ~/.hammiedb


Expected Results:  
The correct bsddb database object is created, the spambayes database file is opened, and the sb_mboxtrain.py script runs without error.

Adding dev-python/bsddb3 to RDEPEND for spambayes solves the problem.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-22 19:44:03 UTC
Fixed.