[Spambayes] Error converting database to a pickle

Alan Campbell alan at mullen.demon.co.uk
Wed Oct 1 14:55:03 EDT 2003


Hi,

Because of my problems with pop3proxy_service, I was advised to switch
to a pickle.  I have tried converting my existing database to a pickle
as I don't really want to loose my training, but I get the following
error :-

C:\spambayes-1.0a6\scripts>sb_dbexpimp.py -e -D message_info_database.db
-f mess
age.export
Traceback (most recent call last):
  File "C:\spambayes-1.0a6\scripts\sb_dbexpimp.py", line 262, in ?
    runExport(dbFN, useDBM, flatFN)
  File "C:\spambayes-1.0a6\scripts\sb_dbexpimp.py", line 110, in
runExport
    words.remove(bayes.statekey)
ValueError: list.remove(x): x not in list

I have also tried using the -d instead of -D, but that produced the
following error :-

C:\spambayes-1.0a6\scripts>sb_dbexpimp.py -e -d message_info_database.db
-f mess
age.export
Traceback (most recent call last):
  File "C:\spambayes-1.0a6\scripts\sb_dbexpimp.py", line 262, in ?
    runExport(dbFN, useDBM, flatFN)
  File "C:\spambayes-1.0a6\scripts\sb_dbexpimp.py", line 112, in
runExport
    bayes = spambayes.storage.PickledClassifier(dbFN)
  File "C:\Python23\Lib\site-packages\spambayes\storage.py", line 90, in
__init_
_
    self.load()
  File "C:\Python23\Lib\site-packages\spambayes\storage.py", line 113,
in load
    tempbayes = pickle.load(fp)
EOFError

Any suggestions ?

TIA

Alan
---
mailto:alan at mullen.demon.co.uk
http://www.mullen.demon.co.uk/ 




More information about the Spambayes mailing list