[ python-Bugs-986528 ] bsddb/weakref error
SourceForge.net
noreply at sourceforge.net
Fri Jul 9 16:31:19 CEST 2004
Bugs item #986528, was opened at 2004-07-07 06:51
Message generated for change (Comment added) made by montanaro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=986528&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: bsddb/weakref error
Initial Comment:
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 "<string>", 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.
----------------------------------------------------------------------
>Comment By: Skip Montanaro (montanaro)
Date: 2004-07-09 09:31
Message:
Logged In: YES
user_id=44345
Yes. My sandbox has no tags. I generally just blindly do a
"cvs up ; configure ; make install" and start using the
result as my day-to-day Python interpreter.
I just reverted Fred's changes from July 2 to the relevant
.c, .py and .h files in my sandbox and confirmed that the
traceback disappeared.
Maybe there's nothing wrong with what Fred checked in, but
that it had an unintended effect on the bsddb package, and
that's where the problem needs to be resolved.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2004-07-09 09:14
Message:
Logged In: YES
user_id=6656
Are you sure your build is completely up to date? For
whatever reason, it looks like _weakref.ref in the traceback
above is a 'builtin_function_or_method', not a 'type' which
is what Fred's checkins turned it into.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2004-07-09 09:08
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=986528&group_id=5470
More information about the Python-bugs-list
mailing list