From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id EBC9A6DE17AE for ; Thu, 16 Feb 2017 06:24:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gxHOPkdtZXjf for ; Thu, 16 Feb 2017 06:24:21 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 4A2BF6DE1773 for ; Thu, 16 Feb 2017 06:24:21 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1ceMyD-00027i-TM; Thu, 16 Feb 2017 09:23:41 -0500 Received: (nullmailer pid 20765 invoked by uid 1000); Thu, 16 Feb 2017 14:24:16 -0000 From: David Bremner To: Aryeh Leib Taurog , notmuch@notmuchmail.org Subject: Re: notmuch version/Python bindings In-Reply-To: <20170216140938.GB16604@deb76.aryehleib.com> References: <20170216140938.GB16604@deb76.aryehleib.com> Date: Thu, 16 Feb 2017 10:24:16 -0400 Message-ID: <87h93u9ptb.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 14:24:22 -0000 Aryeh Leib Taurog 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 > from .database import Database > File "/home/altaurog/venv/offlineimap/lib/python2.7/site-packages/notmuch/database.py", line 24, in > from .globals import ( > File "/home/altaurog/venv/offlineimap/lib/python2.7/site-packages/notmuch/globals.py", line 27, in > 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