By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

DbfilenameShelf instance has no attribute 'writeback'

P: n/a
Anyone have any idea why this is failing with the following error

class _IndexFile:
"""An _IndexFile is an implementation class that presents a
Sequence and Dictionary interface to a sorted index file."""

def __init__(self, pos, filenameroot):
self.pos = pos
self.file = open(_indexFilePathname(filenameroot), _FILE_OPEN_MODE)
self.offsetLineCache = {} # Table of (pathname, offset) -> (line,
nextOffset)
self.rewind()
self.shelfname = os.path.join(WNSEARCHDIR, pos + ".pyidx")
try:
import shelve
self.indexCache = shelve.open(self.shelfname, 'r')
except:
pass

Exception exceptions.AttributeError: "DbfilenameShelf instance has no
attribute 'writeback'" in Exception exceptions.AttributeError:
"DbfilenameShelf instance has no attribute 'writeback'" in Exception
exceptions.AttributeError: "DbfilenameShelf instance has no attribute
'writeback'" in Exception exceptions.AttributeError: "DbfilenameShelf
instance has no attribute 'writeback'" in

The code still returns the correct restults but each result come back
with this exception.

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.