--- /dev/null
+Return-Path: <robert@kunnemann.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id DB15E6DE0AD1\r
+ for <notmuch@notmuchmail.org>; Mon, 19 Oct 2015 05:13:12 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id GVL1ZQ7a-2Wc for <notmuch@notmuchmail.org>;\r
+ Mon, 19 Oct 2015 05:13:10 -0700 (PDT)\r
+X-Greylist: delayed 1179 seconds by postgrey-1.35 at arlo;\r
+ Mon, 19 Oct 2015 05:13:10 PDT\r
+Received: from wp251.webpack.hosteurope.de (wp251.webpack.hosteurope.de\r
+ [80.237.133.20])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 0A9606DE0948\r
+ for <notmuch@notmuchmail.org>; Mon, 19 Oct 2015 05:13:09 -0700 (PDT)\r
+Received: from sito2_224.sit.fraunhofer.de ([141.12.67.224] helo=localhost);\r
+ authenticated\r
+ by wp251.webpack.hosteurope.de running ExIM with esmtpsa\r
+ (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\r
+ id 1Zo90E-0000s6-OC; Mon, 19 Oct 2015 13:53:22 +0200\r
+Date: Mon, 19 Oct 2015 13:53:21 +0200\r
+From: Robert =?iso-8859-1?Q?K=FCnnemann?= <robert@kunnemann.de>\r
+To: notmuch@notmuchmail.org\r
+Subject: [bug] Python bindings fail to load shared libraries in MacOS El\r
+ Capitan\r
+Message-ID: <20151019115321.GA74194@pc-kuennemann.sit.fraunhofer.de>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=iso-8859-1; format=flowed\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: 8bit\r
+User-Agent: Mutt/1.5.23.1 (2014-03-12)\r
+X-bounce-key: webpack.hosteurope.de;robert@kunnemann.de;1445256790;115daa66;\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 19 Oct 2015 12:13:13 -0000\r
+\r
+Hi!\r
+\r
+The python bindings fail to load libnotmuch with the new version of\r
+MacOS X (10.11). Running "afew", a tagger written in Python gives:\r
+\r
+Traceback (most recent call last):\r
+ File "/usr/local/Cellar/afew/HEAD/libexec/bin/afew", line 9, in <module>\r
+ load_entry_point('afew==0.0.0', 'console_scripts', 'afew')()\r
+ File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 356, in load_entry_point\r
+ """Return `name` entry point of `group` for `dist` or raise ImportError"""\r
+ File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2476, in load_entry_point\r
+ except ValueError:\r
+ File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2190, in load\r
+ parse_map = classmethod(parse_map)\r
+ File "/Library/Python/2.7/site-packages/afew-0.0.0-py2.7.egg/afew/commands.py", line 27, in <module>\r
+ from afew.Database import Database\r
+ File "/Library/Python/2.7/site-packages/afew-0.0.0-py2.7.egg/afew/Database.py", line 23, in <module>\r
+ import notmuch\r
+ File "/usr/local/lib/python2.7/site-packages/notmuch/__init__.py", line 54, in <module>\r
+ from .database import Database\r
+ File "/usr/local/lib/python2.7/site-packages/notmuch/database.py", line 24, in <module>\r
+ from .globals import (\r
+ File "/usr/local/lib/python2.7/site-packages/notmuch/globals.py", line 32, in <module>\r
+ raise ImportError("Could not find shared 'notmuch' library.")\r
+ImportError: Could not find shared 'notmuch' library.\r
+\r
+Setting DYLD_FALLBACK_LIBRARY_PATH to /usr/local/lib (where\r
+libnotmuch4.dylib resides) did not help.\r
+\r
+As Eric Wang's response in this thread suggested\r
+http://stackoverflow.com/questions/32905322/oserror-dlopenlibsystem-dylib-6-image-not-found\r
+I've substituted \r
+\r
+nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION))\r
+\r
+in globals.py\r
+\r
+nmlib = CDLL("/usr/local/lib/libnotmuch.{0:s}.dylib".format(SOVERSION))\r
+\r
+This resolved the problem for me.\r
+\r
+With kind regards, Robert Künnemann\r