<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi everyone,<div class=""><br class=""></div><div class="">I’m trying to install bsddb3 on a modern OSX system.</div><div class="">This fails at the version number check, which naively assumes it’s a single digit x.y version:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">❯ brew install berkeley-db</div><div class="">❯ export YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1</div><div class="">❯ pip install bsddb3<br class="">Collecting bsddb3<br class="">  Using cached <a href="https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz" class="">https://files.pythonhosted.org/packages/e9/fc/ebfbd4de236b493f9ece156f816c21df0ae87ccc22604c5f9b664efef1b9/bsddb3-6.2.6.tar.gz</a><br class="">    Complete output from command python setup.py egg_info:<br class="">    Trying to use the Berkeley DB you specified...<br class="">    Traceback (most recent call last):<br class="">      File "<string>", line 1, in <module><br class="">      File "/private/var/folders/jj/p47391fj7b75pw61zvpph4w40000gn/T/pip-install-upg69tsr/bsddb3/setup.py", line 42, in <module><br class="">        import setup3<br class="">      File "/private/var/folders/jj/p47391fj7b75pw61zvpph4w40000gn/T/pip-install-upg69tsr/bsddb3/setup3.py", line 354, in <module><br class=""><b class="">        db_ver = (int(fullverstr[0]), int(fullverstr[2]))<br class="">    ValueError: invalid literal for int() with base 10: '.'<br class=""></b>    <br class="">    ----------------------------------------<br class="">Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jj/p47391fj7b75pw61zvpph4w40000gn/T/pip-install-upg69tsr/bsddb3/<br class=""><br class=""></div><div class=""><br class=""></div><div class="">However, the version string is 18.1:</div><div class=""><br class=""></div><div class=""> ❯ grep DB_VERSION_STRING /usr/local/include/db.h<br class="">#define<span class="Apple-tab-span" style="white-space:pre">        </span>DB_VERSION_STRING<span class="Apple-tab-span" style="white-space:pre">   </span>"Berkeley DB 18.1.32: (February 19, 2019)"<br class=""><br class=""></div><div class=""><br class=""></div><div class="">The workaround has been so far:</div><div class=""><div class=""><br class=""></div><div class="">❯ brew uninstall berkeley-db</div></div><div class="">❯ brew install berkeley-db@4</div><div class="">❯ export BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db@4/4.8.30/</div><div class="">❯ pip install bsddb3<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Could you fix the <b class="">fullverstr</b> parsing, e.g. by using tuple(map(int, fullverstr.split(‘.’)))</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Best,</div><div class="">Diederik</div></body></html>