From: Robert Künnemann Date: Thu, 22 Oct 2015 07:38:29 +0000 (+0200) Subject: Re: [bug] Python bindings fail to load shared libraries in MacOS El Capitan X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9fa6baaf6230bf92009ff4866b834a23ce816fb3;p=notmuch-archives.git Re: [bug] Python bindings fail to load shared libraries in MacOS El Capitan --- diff --git a/66/1ee99ad85502a3ef12440eb9222370064e579d b/66/1ee99ad85502a3ef12440eb9222370064e579d new file mode 100644 index 000000000..6ed1cc039 --- /dev/null +++ b/66/1ee99ad85502a3ef12440eb9222370064e579d @@ -0,0 +1,80 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id C5EC16DE0B4F + for ; Thu, 22 Oct 2015 00:38:35 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.004 +X-Spam-Level: +X-Spam-Status: No, score=0.004 tagged_above=-999 required=5 tests=[AWL=0.004, + RCVD_IN_DNSWL_NONE=-0.0001] 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 TtZArIh9Y-hq for ; + Thu, 22 Oct 2015 00:38:33 -0700 (PDT) +Received: from wp251.webpack.hosteurope.de (wp251.webpack.hosteurope.de + [80.237.133.20]) + by arlo.cworth.org (Postfix) with ESMTPS id D4DB66DE0B4B + for ; Thu, 22 Oct 2015 00:38:32 -0700 (PDT) +Received: from sito2_224.sit.fraunhofer.de ([141.12.67.224] helo=localhost); + authenticated + by wp251.webpack.hosteurope.de running ExIM with esmtpsa + (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) + id 1ZpASB-0001Dw-3q; Thu, 22 Oct 2015 09:38:27 +0200 +Date: Thu, 22 Oct 2015 09:38:29 +0200 +From: Robert =?iso-8859-1?Q?K=FCnnemann?= +To: David Bremner +Cc: notmuch@notmuchmail.org +Subject: Re: [bug] Python bindings fail to load shared libraries in MacOS El + Capitan +Message-ID: <20151022073829.GE15696@peachum.local> +References: <20151019115321.GA74194@pc-kuennemann.sit.fraunhofer.de> + <87pp08t5jf.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain; charset=iso-8859-1; format=flowed +Content-Disposition: inline +Content-Transfer-Encoding: 8bit +In-Reply-To: <87pp08t5jf.fsf@maritornes.cs.unb.ca> +User-Agent: Mutt/1.5.23.1 (2014-03-12) +X-bounce-key: webpack.hosteurope.de;robert@kunnemann.de;1445499512;9cdd8bb9; +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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, 22 Oct 2015 07:38:35 -0000 + +Hi! + +On 21/10, David Bremner wrote: +>Robert Künnemann writes: +>> +>> nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION)) +>> +>> in globals.py +>> +>> nmlib = CDLL("/usr/local/lib/libnotmuch.{0:s}.dylib".format(SOVERSION)) +> +>In recent versions of notmuch there's already code there to detect MacOS +>and do something different. Are you saying that detection is not +>working? +It is working and adds the suffix ".dylyb" to the library name. + +>Also, it seems like you are coding the absolute path name of +>the library. Is that really necessary? +It seems so. Two responses in the thread I mentioned +http://stackoverflow.com/questions/32905322/oserror-dlopenlibsystem-dylib-6-image-not-found +suggest the same, and it solved the issue for me. + +I am happy to try out other, better solutions. + +Cheers, Robert