Importing scikit-learn==0.24.0 fails on macOS 10.13: "Symbol not found: ____chkstk_darwin"
See original GitHub issueDescribe the bug
Importing scikit-learn==0.24
fails on macOS 10.13.
I believe this is similar to https://github.com/nodegui/nodegui/issues/391, i.e. the prebuilt libomp
binary (from 10.15) isn’t compatible with macOS 10.13.
We’re also tracking this issue on the project where we encountered it: https://github.com/neuropoly/spinalcordtoolbox/issues/3121.
Steps/Code to Reproduce
- Install
scikit-learn==0.24.0
on macOS 10.13 (for us, it appeared as a successful install) - Import
scikit-learn
(for us, an error was thrown)
Expected Results
No error is thrown.
Actual Results
dlopen(/Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build/_check_build.cpython-36m-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
in /Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build/../.dylibs/libomp.dylib
___________________________________________________________________________
Contents of /Users/travis/build/neuropoly/spinalcordtoolbox/python/envs/venv_sct/lib/python3.6/site-packages/sklearn/__check_build:
__init__.py __pycache__ _check_build.cpython-36m-darwin.so
setup.py
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.
If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.
If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.
Versions
- Python:
python-3.6.12
- Numpy:
numpy-1.19.4
- Scipy:
scipy-1.5.4
- Scikit-learn:
scikit-learn-0.24.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:16 (13 by maintainers)
Top Results From Across the Web
Symbol not found: ____chkstk_darwin error on MacOS when ...
My MacOS version is 10.13.6. The error appeared after installing node through their website and executing the pkg file given. I tried ...
Read more >Issues installing scikit-image - Usage & Issues - Image.sc Forum
Hello, I am having trouble installing scikit-image to my computer. Yesterday, I tried to install by running “pip install scikit-image” It ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you very much for the confirmation. We will include this fix in a 0.24.1 release (soon-ish).
This was fixed with the 0.24.1 release a few days ago.