notmuch version/Python bindings

David Bremner david at tethera.net
Thu Feb 16 06:24:16 PST 2017


Aryeh Leib Taurog <python at aryehleib.com> writes:

> The latest notmuch includes libnotmuch.so.4.4.0 but the latest python 
> bindings wrap libnotmuch.so.3 so importing from notmuch results in the 
> following error:
>
>   File "/home/altaurog/venv/offlineimap/lib/python2.7/site-packages/notmuch/__init__.py", line 54, in <module>
>     from .database import Database
>   File "/home/altaurog/venv/offlineimap/lib/python2.7/site-packages/notmuch/database.py", line 24, in <module>
>     from .globals import (
>   File "/home/altaurog/venv/offlineimap/lib/python2.7/site-packages/notmuch/globals.py", line 27, in <module>
>     raise ImportError("Could not find shared 'notmuch' library.")
> ImportError: Could not find shared 'notmuch' library.
>
> I changed it to libnotmuch.so.4 in globals.py and it seems to work.  
> Is that reasonable or should I expect problems?

I'd say you should get your python bindings from the same place you get
libnotmuch. In the latest released source (and in git master), the
SOVERSION in version.py matches, and globals.py uses that.

d


More information about the notmuch mailing list