From: "Robert Künnemann" <robert@kunnemann.de>
To: notmuch@notmuchmail.org
Subject: [bug] Python bindings fail to load shared libraries in MacOS El Capitan
Date: Mon, 19 Oct 2015 13:53:21 +0200 [thread overview]
Message-ID: <20151019115321.GA74194@pc-kuennemann.sit.fraunhofer.de> (raw)
Hi!
The python bindings fail to load libnotmuch with the new version of
MacOS X (10.11). Running "afew", a tagger written in Python gives:
Traceback (most recent call last):
File "/usr/local/Cellar/afew/HEAD/libexec/bin/afew", line 9, in <module>
load_entry_point('afew==0.0.0', 'console_scripts', 'afew')()
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 356, in load_entry_point
"""Return `name` entry point of `group` for `dist` or raise ImportError"""
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2476, in load_entry_point
except ValueError:
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2190, in load
parse_map = classmethod(parse_map)
File "/Library/Python/2.7/site-packages/afew-0.0.0-py2.7.egg/afew/commands.py", line 27, in <module>
from afew.Database import Database
File "/Library/Python/2.7/site-packages/afew-0.0.0-py2.7.egg/afew/Database.py", line 23, in <module>
import notmuch
File "/usr/local/lib/python2.7/site-packages/notmuch/__init__.py", line 54, in <module>
from .database import Database
File "/usr/local/lib/python2.7/site-packages/notmuch/database.py", line 24, in <module>
from .globals import (
File "/usr/local/lib/python2.7/site-packages/notmuch/globals.py", line 32, in <module>
raise ImportError("Could not find shared 'notmuch' library.")
ImportError: Could not find shared 'notmuch' library.
Setting DYLD_FALLBACK_LIBRARY_PATH to /usr/local/lib (where
libnotmuch4.dylib resides) did not help.
As Eric Wang's response in this thread suggested
http://stackoverflow.com/questions/32905322/oserror-dlopenlibsystem-dylib-6-image-not-found
I've substituted
nmlib = CDLL("libnotmuch.so.{0:s}".format(SOVERSION))
in globals.py
nmlib = CDLL("/usr/local/lib/libnotmuch.{0:s}.dylib".format(SOVERSION))
This resolved the problem for me.
With kind regards, Robert Künnemann
next reply other threads:[~2015-10-19 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 11:53 Robert Künnemann [this message]
2015-10-21 18:55 ` [bug] Python bindings fail to load shared libraries in MacOS El Capitan David Bremner
2015-10-22 7:38 ` Robert Künnemann
2015-10-22 15:32 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151019115321.GA74194@pc-kuennemann.sit.fraunhofer.de \
--to=robert@kunnemann.de \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).