Shelve Help (file portablility question)

Jim jkring at calbay.com
Tue Apr 2 14:13:30 EST 2002


I cannot read a shelve file that I created in Python 1.5.2 on Redhat
6.X using Python 1.5.2 on Redhat 7.X.  Is there any way that I can do
this?

my error message is shown below:

>>> db = shelve.open('shelveFile')
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 86, in open return
mod.open(file, flag, mode)
    File "/usr/lib/python1.5/dbhash.py", line 8, in open return
bsddb.hashopen(file, flag, mode) bsddb.error: (22, 'Invalid argument')

-Jim



More information about the Python-list mailing list