shelve files

Martin v. Löwis loewis at informatik.hu-berlin.de
Tue Apr 2 11:51:39 EST 2002


jkring at calbay.com (Jim) writes:

> I moved a shelve file from one machine to another and I cannot open it
> on the new machine.  Is there something that I should be aware of?  

You need the same version of bsddb on both machines (of the database
package, not the Python module). If you cannot arrange for using the
same BSDDB version, you need to use a different underlying dbm
package, such as gdbm or dumpdbm (although the latter is not
recommended).

It may be that you can transfer the data successfully with
db_dump/db_load; I haven't tried that.

Regards,
Martin



More information about the Python-list mailing list