Skip to content

Instantly share code, notes, and snippets.

@skyl
Created December 12, 2013 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyl/7922856 to your computer and use it in GitHub Desktop.
Save skyl/7922856 to your computer and use it in GitHub Desktop.
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
Copy link
Author

skyl commented Dec 12, 2013

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

@daveoncode
Copy link

@ 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