Issue 986528: bsddb/weakref error - Python tracker (original) (raw)
After a cvs up and reinstall of Python, Spambayes is giving me this traceback:
Traceback (most recent call last): File "/Users/skip/local/bin/sb_filter.py", line 257, in ? main() File "/Users/skip/local/bin/sb_filter.py", line 248, in main action(msg) File "/Users/skip/local/bin/sb_filter.py", line 192, in train_spam self.open('c') File "/Users/skip/local/bin/sb_filter.py", line 163, in open self.h = hammie.open(self.dbname, self.usedb, self.mode) File "/Users/skip/local/lib/python2.4/site-packages/ spambayes/hammie.py", line 275, in open return Hammie(storage.open_storage(filename, useDB, mode)) File "/Users/skip/local/lib/python2.4/site-packages/ spambayes/storage.py", line 679, in open_storage return klass(data_source_name, mode) File "/Users/skip/local/lib/python2.4/site-packages/ spambayes/storage.py", line 164, in init self.load() File "/Users/skip/local/lib/python2.4/site-packages/ spambayes/storage.py", line 189, in load self.dbm = dbmstorage.open(self.db_name, self.mode) File "/Users/skip/local/lib/python2.4/site-packages/ spambayes/dbmstorage.py", line 65, in open return f(db_name, mode) File "/Users/skip/local/lib/python2.4/site-packages/ spambayes/dbmstorage.py", line 19, in open_dbhash import bsddb File "/Users/skip/local/lib/python2.4/bsddb/init.py", line 68, in ? exec """ File "", line 3, in ? File "/Users/skip/local/lib/python2.4/weakref.py", line 152, in ? class KeyedRef(ref): TypeError: cannot create 'builtin_function_or_method' instances
I don't know what it means, but it wasn't happening before the cvs up. I suspect something changed in the bsddb3 stuff, so I'm provisionally giving it to Greg.
Logged In: YES user_id=44345
Further inspection of recent python-checkins activity shows a large change to the weakref stuff by Fred on July 2nd (more recent than Greg's change to bsddb on June 28th), so reassigning to him in case it's a weakref problem. I've been so-far unable to back out the change in my repository (subsequent changes to some of the files make that difficult), so I can't verify the weakref changes are the root of my problems, but they seem pretty wide-ranging, so that's my guess.