[pybsddb] Migration tool?

José María Mateos chema at rinzewind.org
Mon Aug 4 09:47:20 CEST 2025


On Sat, Aug 02, 2025 at 05:52:47PM +0200, Jesus Cea wrote:
>This is not related to the berkeleydb python bindings but to the 
>underlying Oracle BerkeleyDB database engine.
>
>What version of Oracle Berkeley DB are you using?.

>Using the old "bsddb3", do this:
>
>>>> import bsddb3
>>>> bsddb3.db.version()

bsddb3.db.version()
(6, 2, 32)

>
>Using the new "berkeleydb", do this:
>
>>>> import berkeleydb
>>>> berkeleydb.db.version()

berkeleydb.db.version()
(5, 3, 28)

The issue might come from the fact that the Python 3.11 installation is 
dockerized and used a different Linux distribution than the old Python 
3.6 version with bsddb3.

I'm going to run a few tests on my side, but I think this is very much 
fixable. Am I right to assume that a file created with BerkeleyDB 5.3.28 
can be opened with BerkeleyDB 6.2.32, but not the other way around, 
which is what I'm seeing now?

Thanks for your help.

-- 
José María (Chema) Mateos || https://rinzewind.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20250804/ee37224f/attachment.bin>


More information about the pybsddb mailing list