newbie to shelves
DOUGS at oceanic.com
Mon Mar 20 17:43:28 CET 2000
If that's all you're doing, its not enough. I've had this problem when I
didn't explicitly close the shelve. I've succesfully run on RH6.1 so don't
think its necessarily related to the distribution.
> -----Original Message-----
> From: Chris Curvey [mailto:ccurvey at bellatlantic.net]
> Sent: Sunday, March 19, 2000 12:35 PM
> To: python-list at python.org
> Subject: newbie to shelves
> Hi all,
> I have a simple program:
> import shelve
> dbase = shelve.open("foo")
> This runs fine the first time, and dutifully creates a file named
> "foo". But anytime after that, I get an error "anydbm.error: db type
> could not be determined"
> The OS "file" command says that "foo" is a "Berkeley DB: 2.X
> Endian (Version 5)". I'm running on Red Hat 6.1.
> Any idea what I'm doing wrong? The online docs, and the O'Reilly book
> aren't leading me anywhere. I checked for a FAQ in this group, but
> didn't see one.
> Thanks in advance!
More information about the Python-list