Yesterday, I noticed that one of my Github workflows (involving numba), which was successfully executing before, was now unexpectedly failing for Python 3.9 with the following error:
$ python -c “from numba.np.ufunc import omppool”
Traceback (most recent call last):
File “”, line 1, in
ImportError: dlopen(/Users/runner/hostedtoolcache/Python/3.9.17/x64/lib/python3.9/site-packages/numba/np/ufunc/omppool.cpython-39-darwin.so, 0x0002): Library not loaded: ‘@rpath/libiomp5.dylib’
Referenced from: ‘/Users/runner/hostedtoolcache/Python/3.9.17/x64/lib/python3.9/site-packages/numba/np/ufunc/omppool.cpython-39-darwin.so’
Reason: tried: ‘/Users/ci/miniconda3/envs/numba-ci/envs/testenv_8f3f63b2-cafa-4000-b840-be4d8f80b9d3/lib/libiomp5.dylib’ (no such file), ‘/Users/ci/miniconda3/envs/numba-ci/envs/testenv_8f3f63b2-cafa-4000-b840-be4d8f80b9d3/lib/libiomp5.dylib’ (no such file), ‘/Users/ci/miniconda3/envs/numba-ci/envs/testenv_8f3f63b2-cafa-4000-b840-be4d8f80b9d3/lib/libiomp5.dylib’ (no such file), ‘/Users/ci/miniconda3/envs/numba-ci/envs/testenv_8f3f63b2-cafa-4000-b840-be4d8f80b9d3/lib/libiomp5.dylib’ (no such file), ‘/Users/ci/miniconda3/envs/numba-ci/envs/testenv_8f3f63b2-cafa-4000-b840-be4d8f80b9d3/lib/libiomp5.dylib’ (no such file), ‘/Users/ci/miniconda3/envs/numba-ci/envs/testenv_8f3f63b2-cafa-4000-b840-be4d8f80b9d3/lib/libiomp5.dylib’ (no such file), ‘/usr/local/lib/libiomp5.dylib’ (no such file), ‘/usr/lib/libiomp5.dylib’ (no such file)
- It is having trouble finding
libiomp5.dylibbut this seems to only affect Python 3.9 and not Python [3.8, 3.10, 3.11] - While
libompis already installed,libiomp5.dylibdoesn’t seem to be located in the usual places (i.e.,/usr/libor/usr/local/lib) - If somebody can help me locate
libiomp5.dylibwithin the Github Actions environment then I can redirectomppool.cpython-39-darwin.soto point to the right@rpathon my own
Lastly, for easier reproducibility, I’ve created the following public numba test repo along with the aforementioned Github Actions workflow. The corresponding failing Github Actions workflow output is here.
I would appreciate any help or guidance for resolving this.