newbie to shelves

Chris Curvey ccurvey at bellatlantic.net
Sun Mar 19 17:35:17 EST 2000


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 Hash/Little
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!

-Chris




More information about the Python-list mailing list