Skip to content

Instantly share code, notes, and snippets.

@skyl skyl/gist:7922856
Created Dec 12, 2013

Embed
What would you like to do?
How to debug? ctypes.CDLL('libSystem.dylib')
>>> import ctypes
>>> ctypes.CDLL('libSystem.dylib')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libSystem.dylib, 6): image not found
@skyl

This comment has been minimized.

Copy link
Owner Author

skyl commented Dec 12, 2013

check your DYLD* and LD* bash environment variables. DYLD_FALLBACK_LIBRARY_PATH, for example.

@daveoncode

This comment has been minimized.

Copy link

daveoncode commented Jan 4, 2014

@ skyl THANK YOU!!! I had a similar problem and I solved by removing DYLD_FALLBACK_LIBRARY_PATH from my bash profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.