Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Big Sur dynamic linker cache causes contrib/securetransport to raise an ImportError #1904

Closed
sheagcraig opened this issue Jul 16, 2020 · 1 comment

Comments

@sheagcraig
Copy link
Contributor

sheagcraig commented Jul 16, 2020

On macOS Big Sur, Apple has added a "dynamic linker cache". When ctypes tries to find the Security and CoreFoundation frameworks, an ImportError is raised, really because ctypes.utils.find_library can't see that the path exists. However, if you go ahead and load it anyway, everything is happy.

Please see: https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11-beta-release-notes
Specifically:
New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

I have a PR for this incoming #1905 .

@sethmlarson
Copy link
Member

Closed in #1905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants