Created
          December 12, 2013 03:40 
        
      - 
      
 - 
        
Save skyl/7922856 to your computer and use it in GitHub Desktop.  
    How to debug? ctypes.CDLL('libSystem.dylib')
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | >>> 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 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
  
            
check your DYLD* and LD* bash environment variables.
DYLD_FALLBACK_LIBRARY_PATH, for example.