shelve broken on redhat 6.1
Patricia Hawkins
phawkins at spamnotconnact.com
Wed Feb 16 13:13:55 EST 2000
Has anyone else noticed? Shelve is broken on the RedHat 6.1
distribution -- python-1.5.2-7.i386.rpm
Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import shelve
>>> x = shelve.open("x")
>>> x["v"]=3
>>> x.close()
>>> x = shelve.open("x")
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "/usr/lib/python1.5/shelve.py", line 152, in open
return DbfilenameShelf(filename, flag)
File "/usr/lib/python1.5/shelve.py", line 142, in __init__
Shelf.__init__(self, anydbm.open(filename, flag))
File "/usr/lib/python1.5/anydbm.py", line 83, in open
raise error, "db type could not be determined"
anydbm.error: db type could not be determined
>>>
When I forced a downgrade to python-1.5.2-2.i386.rpm, it worked just
fine. I haven't had a chance to look into this deeply (maybe a new
version of one of the default DB's? maybe something wrong in the
build?), but thought I'd mention it in case anyone else was having
trouble with it.
--
Patricia
More information about the Python-list
mailing list