[Spambayes] Follow-up on trying to use spambayes-1.0a7

papaDoc papaDoc at videotron.ca
Wed Nov 12 09:21:54 EST 2003


Hi,

I was trying to install Spambayes 1.0a7 and I was getting this error 
message:

     500 Server error
Traceback (most recent call last):
 File "c:\Devtools\spambayes\spambayes\spambayes\Dibbler.py", line 453, 
in found_terminator
   getattr(plugin, name)(**params)
 File "c:\Devtools\spambayes\spambayes\spambayes\UserInterface.py", line 
684, in onChangeopts
   self.reReadOptions()
 File "c:\Devtools\spambayes\spambayes\spambayes\ProxyUI.py", line 530, 
in reReadOptions
   state = self.state_recreator()
 File "C:\Devtools\Python\PYTHON~1.2\Scripts\SB_SER~1.PY", line 736, in 
_recreateState
   prepare(state)
 File "C:\Devtools\Python\PYTHON~1.2\Scripts\SB_SER~1.PY", line 752, in 
prepare
   state.createWorkers()
 File "C:\Devtools\Python\PYTHON~1.2\Scripts\SB_SER~1.PY", line 623, in 
createWorkers
   self.bayes = storage.open_storage(filename, self.useDB)
 File "c:\Devtools\spambayes\spambayes\spambayes\storage.py", line 677, 
in open_storage
   return klass(data_source_name)
 File "c:\Devtools\spambayes\spambayes\spambayes\storage.py", line 162, 
in __init__
   self.load()
 File "c:\Devtools\spambayes\spambayes\spambayes\storage.py", line 187, 
in load
   self.dbm = dbmstorage.open(self.db_name, self.mode)
 File "c:\Devtools\spambayes\spambayes\spambayes\dbmstorage.py", line 
60, in open
   return f(db_name, mode)
 File "c:\Devtools\spambayes\spambayes\spambayes\dbmstorage.py", line 
20, in open_dbhash
   return bsddb.hashopen(*args)
error: (22, 'Invalid argument')


I solved my problem with PYTHONPATH and using the python I want (moving 
order of the directories in my path variable).
and I was still getting the error.


I was looking in the dmstorage.py and I saw that
def open_dbhash(*args):
    """Open a bsddb hash.  Don't use this on Windows, unless Python 2.3 or
    greater is used, in which case bsddb3 is actually named bsddb."""

I was using Python-2.2.2 on windows oups
I upgraded to Python-2.3.2 and everything is fine.

I think we should have a nice message saying "DON'T DO THAT. 
UPGRADE...." instead of an exception


Remi

P.S, Thanks to all who helped me on this.




More information about the Spambayes mailing list