[issue43964] ctypes CDLL search path issue on MacOS

Victor Lazzarini report at bugs.python.org
Thu May 27 16:15:39 EDT 2021


Victor Lazzarini <Victor.Lazzarini at nuim.ie> added the comment:

I have looked at this closely and it appears Python 3.6.5 has a search path for libraries and frameworks that is missing in the newer versions (3.7 onwards). 
I can load libraries from /usr/local/lib and ~/lib without any difficulties in 3.6.5, just by passing the file name. In later versions this does not work, you need to pass a full path. Furthermore if these libraries have dependencies which are set with an rpath, the loading fails because the dependencies are not found. None of this is a problem in 3.6.5. This needs to be resolved because packages that are based on ctypes may be broken in versions >= 3.7

This is the case of Csound and ctcsound, for instance.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43964>
_______________________________________


More information about the Python-bugs-list mailing list