-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Loading libm
on macOS fails with Python 3.7
#575
Comments
Python 3.7 does not support macos >=11 officially and this is one of the issues with macos 11 support. It's an upstream issue, but 3.7 is in security fix mode only. |
Thanks Isuru 🙏 That makes sense. So even backporting new patches wouldn't necessarily solve things? |
It would, but it's a lot of code and would take a lot of time do the backport correctly. |
Yeah agreed. Doesn't seem worth it. |
TBH not sure the newer Python's do the right thing either. They return a path, but it doesn't exist: Python 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 07:09:13) [Clang 13.0.1 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library
>>> from os.path import exists
>>> find_library("m")
'/usr/lib/libm.dylib'
>>> exists(find_library("m"))
False There is a Though this seems like an upstream issue. |
That's how it works. See macOS 11 announcement on cached system libraries. |
Solution to issue cannot be found in the documentation.
Issue
Note: This works with Python 3.8+. Maybe we are missing a patch with Python 3.7?
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: