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 E8C636DE1829 for ; Thu, 16 Feb 2017 06:58:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.701 X-Spam-Level: X-Spam-Status: No, score=-0.701 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001] 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 ymz9nJ9j0nOQ for ; Thu, 16 Feb 2017 06:58:53 -0800 (PST) Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by arlo.cworth.org (Postfix) with ESMTPS id A386E6DE1828 for ; Thu, 16 Feb 2017 06:58:53 -0800 (PST) Received: from localhost (unknown [188.120.132.45]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 34B88509B6; Thu, 16 Feb 2017 09:58:51 -0500 (EST) Date: Thu, 16 Feb 2017 16:58:50 +0200 From: Aryeh Leib Taurog To: David Bremner Cc: notmuch@notmuchmail.org Subject: Re: notmuch version/Python bindings Message-ID: <20170216145850.GA2691@deb76.aryehleib.com> References: <20170216140938.GB16604@deb76.aryehleib.com> <87h93u9ptb.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h93u9ptb.fsf@tethera.net> User-Agent: Mutt/1.5.23 (2014-03-12) 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:58:55 -0000 Okay, makes sense. Might I suggest a new release on pypi, then? On Thu, Feb 16, 2017 at 10:24:16AM -0400, David Bremner wrote: > 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