From 3ddf29cbdca82cf1de82dec1ec33ff851b6ecc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Tue, 2 Feb 2016 09:55:28 +0000 Subject: [PATCH 1/2] Reference libc.dylib by absolute path in OSX 10.11 This fixes #264 for me but I'm not sure if this is the way to go. --- wand/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wand/api.py b/wand/api.py index fca5f011..37386b02 100644 --- a/wand/api.py +++ b/wand/api.py @@ -1395,7 +1395,10 @@ class AffineMatrix(ctypes.Structure): libc = ctypes.CDLL(msvcrt) else: if platform.system() == 'Darwin': - libc = ctypes.cdll.LoadLibrary('libc.dylib') + if platform.mac_ver()[0].startswith('10.11'): + libc = ctypes.cdll.LoadLibrary('/usr/lib/libc.dylib') + else: + libc = ctypes.cdll.LoadLibrary('libc.dylib') elif platform.system() == 'FreeBSD': libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c')) else: From 48c0e3aab485f129d979576390022f6f7cc79e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Tue, 2 Feb 2016 10:04:47 +0000 Subject: [PATCH 2/2] Removing trailing whitespace :( --- wand/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wand/api.py b/wand/api.py index 37386b02..5ef57238 100644 --- a/wand/api.py +++ b/wand/api.py @@ -1397,7 +1397,7 @@ class AffineMatrix(ctypes.Structure): if platform.system() == 'Darwin': if platform.mac_ver()[0].startswith('10.11'): libc = ctypes.cdll.LoadLibrary('/usr/lib/libc.dylib') - else: + else: libc = ctypes.cdll.LoadLibrary('libc.dylib') elif platform.system() == 'FreeBSD': libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))