On 06-Mar-08, 18:24 (CST), Matthias Klose <[EMAIL PROTECTED]> wrote: > sorry for the "mess". you should be able to use the db4.6-utils to > export the database and then use the db4.5-utils to recreate the > database. An suggested text for README.Debian would be very welcome.
Okay, fair enough, here's my pass at "README.db4". Please correct any misunderstandings about the history. ====================================================================== The Debian version of Python 2.5 was originally built using Berkely DB 4.6. Due to problems with DB 4.6, this was reverted to DB 4.5 in Debian package 2.5.1-7. However, databases created (or modified?) by DB 4.6 are not usuable by DB 4.5; a common indicator is this exception: bsddb.db.DBInvalidArgError: (22, 'Invalid argument -- /some/file/name: unsupported hash version: 9') Note that you may not have explicitly used the bsddb extension, as other modules (such as anydbm and shelve) may use bsddb. To restore Python 2.5 access to your existing DB 4.6 file, you need to install two packages: db4.5-util and db4.6-util. Then, to recover the file "example.db", use the following sequence of commands, noting carefully the distinction between 4.5 and 4.6: $ mv example.db example.db.db46 $ db4.6-dump example.db.db46 | db4.5-load example.db ====================================================================== Regards, Steve -- Steve Greenland The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world. -- seen on the net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]