Shelve Help (file portablility question)
Oleg Broytmann
phd at phd.pp.ru
Tue Apr 2 15:10:05 EST 2002
On Tue, Apr 02, 2002 at 11:13:30AM -0800, Jim wrote:
> 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')
http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.099.htp
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list