[pybsddb] Installing on modern berkeley-db fails with xx.y version-number check

Jesus Cea jcea at jcea.es
Sat Nov 21 02:10:37 CET 2020


On 3/1/20 20:35, Diederik van der Boor | Edoburu wrote:
> Hi everyone,
> 
> I’m trying to install bsddb3 on a modern OSX system.
> This fails at the version number check, which naively assumes it’s a
> single digit x.y version:
> 
> 
> ❯ brew install berkeley-db
> ❯ export YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1
> ❯ pip install bsddb3
> Collecting bsddb3
>   Using cached
> https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz
>     Complete output from command python setup.py egg_info:
>     Trying to use the Berkeley DB you specified...
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File
> "/private/var/folders/jj/p47391fj7b75pw61zvpph4w40000gn/T/pip-install-upg69tsr/bsddb3/setup.py",
> line 42, in <module>
>         import setup3
>       File
> "/private/var/folders/jj/p47391fj7b75pw61zvpph4w40000gn/T/pip-install-upg69tsr/bsddb3/setup3.py",
> line 354, in <module>
> *        db_ver = (int(fullverstr[0]), int(fullverstr[2]))
>     ValueError: invalid literal for int() with base 10: '.'
> *    
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /private/var/folders/jj/p47391fj7b75pw61zvpph4w40000gn/T/pip-install-upg69tsr/bsddb3/
> 
> 
> However, the version string is 18.1:

"bsddb3" doesn't support Oracle Berkeley DB 18.1.x. "bsddb3" is legacy
and I don't plan any new release.

The package has been renamed to "berkeleydb" and development continues
there. Version 18.1.0 was released a week ago, and it supports Oracle
Berkeley DB 18.1.x.

Please, install "berkeleydb" and let me know it it detects correctly
Oracle Berkeley DB 18.1.x in your system.

Be aware of two things:

- "berkeleydb" supports only Python >= 3.6. What Python3 version are
your using?

- Upgrading from "bsddb3" to "berkeleydb" is not transparent, but the
process should be quite trivial.

Some details:

https://www.jcea.es/programacion/pybsddb.htm - Check the green box.

Changelog
https://www.jcea.es/programacion/pybsddb.htm#berkeleydb-18.1.0

Thanks for letting me know that Oracle released a 18.1.x Berkeley DB
library. It seems like I am not in the Oracle notify list about new
releases anymore.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - https://www.jcea.es/    _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:jcea at jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20201121/cfc056d5/attachment.bin>


More information about the pybsddb mailing list