python 2.7.x on MacOSX: failed dlopen() on .so's

Ned Deily nad at
Wed Nov 13 23:44:51 CET 2013

In article <nad-E7CC3B.14401113112013 at>,
 Ned Deily <nad at> wrote:
> There shouldn't be any problems with what you are trying to do.  It works for 
> me with Python 2.7.6 and pycrypto-2.6.1.  Some suggestions:
> - Avoid --enable-shared on OS X at least initially.  There are too many ways 
> things can go wrong.  If you've built with it, suggest starting with a fresh 
> Python source directory just to be sure.
> - Check the dynamic library dependencies of _struct.  On OS X:
>   otool -L /Users/build/python/lib/python2.7/lib-dynload/
> For a non-shared build, the only library dependency should be 
> /usr/lib/libSystem.B.dylib.
> - Make sure you are *really* building pycrypto and friends with your Python 
> and not with some other one.
> - On OS X with an installed Python, you shouldn't need to set PYTHONHOME.

- Check your other environment variables and make sure you are not setting any 
DYLD_ or LD_ env variables.

 Ned Deily,
 nad at

More information about the Python-list mailing list