[Spambayes] DB problem with sb_mboxtrain.py and Pythom-2.3.3

K. H. Braun kbraun at dgrunt.sneakernet.com
Wed Feb 4 22:53:24 EST 2004


Hi Folks

I am a brand new, wet behind the ears, Python newby and can not get
Spambayes-1.0a7 to work. I am running Linux Slackware-9.1. I have installed
Python-2.3.3 into /usr/local/Python and Spambayes-1.0a7 into /usr/local/Spambayes.

I know that these locations are unusual but for admin. reasons this is where I want them to go.

Anyway, when I run the following:
" /usr/local/Spambayes/bin/sb_mboxtrain.py -d \${HOME}/.hammiedb -g \${HOME/mail/ham} -s \${HOME}/mail/spam"

I get the following traceback:
Traceback (most recent call last):
  File "/usr/local/Spambayes/bin/sb_mboxtrain.py", line 315, in ?
    main()
  File "/usr/local/Spambayes/bin/sb_mboxtrain.py", line 296, in main
    h = hammie.open(pck, usedb, "c")
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/hammie.py", line 258, in open
    return Hammie(storage.open_storage(filename, useDB, mode))
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/storage.py", line 675, in open_storage
    return klass(data_source_name, mode)
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/storage.py", line 162, in __init__
    self.load()
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/storage.py", line 187, in load
    self.dbm = dbmstorage.open(self.db_name, self.mode)
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/dbmstorage.py", line 60, in open
    return f(db_name, mode)
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/dbmstorage.py", line 38, in open_best
    return f(*args)
  File "/usr/local/Spambayes/lib/python2.3/site-packages/spambayes/dbmstorage.py", line 20, in open_dbhash
    return bsddb.hashopen(*args)
  File "/usr/local/Python/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')

I have attached a tarball of all the installation logs as well as the scripts that I use to semi-automate the installation(s).

I would really appreciate it if someone would take a look at the stuff in the tarball and tell me what bonehead mistake I have made.
( I believe that it is a Python configuration problem but I am only guessing)

Thankyou in advance for your help!

-- Ken --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SB-Err.tar.bz2
Type: application/octet-stream
Size: 23144 bytes
Desc: 
Url : http://mail.python.org/pipermail/spambayes/attachments/20040204/d94e98c3/SB-Err.tar-0001.obj


More information about the Spambayes mailing list