Shelve-problems
Thomas Weholt
thomas at bibsyst.no
Sat Oct 16 13:03:22 EDT 1999
Hi,
I try to do something like :
>>>import shelve
>>>db = shelve.open('2')
>>> db['1'] = 'test'
And quit python, restart it and this happens when I try to read the data
back in :
>>> import shelve
>>> db = shelve.open('2')
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
>>>
Why?!
I am using Linux Suse 6.2. Could I ( my Linux distro.) be missing
something??
Thomas Weholt
More information about the Python-list
mailing list