Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 314735

Summary: mail-filter/spambayes-1.1_alpha6: requires dev-python/lockfile
Product: Gentoo Linux Reporter: David Bitseff <dbitsef>
Component: Current packagesAssignee: Thomas Raschbacher <lordvan>
Status: RESOLVED FIXED    
Severity: normal CC: python
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Bitseff 2010-04-11 19:43:11 UTC
Spambayes 1.1_alpha6 will not run properly without dev-python/lockfile installed.

Reproducible: Always

Steps to Reproduce:
1. Install spambayes-1.1_alpha6
2. Run /usr/bin/sb_mboxtrain.py --help
3. Notice the python import error.

Actual Results:  
>/usr/bin/sb_mboxtrain.py --help
Attempted to set [Storage] persistent_use_database with invalid value True (<type 'str'>)
Traceback (most recent call last):
  File "/usr/bin/sb_mboxtrain.py-2.6", line 47, in <module>
    from spambayes import hammie, storage, mboxutils
  File "/usr/lib64/python2.6/site-packages/spambayes/hammie.py", line 6, in <module>
    from spambayes import storage
  File "/usr/lib64/python2.6/site-packages/spambayes/storage.py", line 62, in <module>
    from spambayes import classifier
  File "/usr/lib64/python2.6/site-packages/spambayes/classifier.py", line 60, in <module>
    from spambayes.safepickle import pickle_read, pickle_write
  File "/usr/lib64/python2.6/site-packages/spambayes/safepickle.py", line 7, in <module>
    import lockfile
ImportError: No module named lockfile

Expected Results:  
The help/options info is displayed.

Adding dev-python/lockfile to RDEPEND in the ebuild and reinstalling solved the problem.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-15 03:50:47 UTC
Fixed.