This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Victor.Lazzarini
Recipients Victor.Lazzarini, ned.deily, ronaldoussoren
Date 2021-05-31.07:49:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622447356.16.0.950491582945.issue43964@roundup.psfhosted.org>
In-reply-to
Content
Hi Ned,

thanks for your detailed response. I have to say that the LD_LIBRARY_PATH partially worked in some cases, the library got loaded. However in cases where there were dependencies, further issues appeared particularly when the  link (as revealed by otool -L) was prefixed by '@rpath'. I was able to fix these by editing these paths (which is possible in my use case), but we just need to note that it may cause difficulties for others.

We also found a solution to avoid needing to set the environment var. We use the following code

ct.CDLL(ctypes.util.find_library('mylib'))

instead of just passing the library. That works well, and perhaps you may recommend it in the docs.
History
Date User Action Args
2021-05-31 07:49:16Victor.Lazzarinisetrecipients: + Victor.Lazzarini, ronaldoussoren, ned.deily
2021-05-31 07:49:16Victor.Lazzarinisetmessageid: <1622447356.16.0.950491582945.issue43964@roundup.psfhosted.org>
2021-05-31 07:49:16Victor.Lazzarinilinkissue43964 messages
2021-05-31 07:49:15Victor.Lazzarinicreate