-
Notifications
You must be signed in to change notification settings - Fork 350
Open
Description
Reporting a bug
I am not quite sure if this is already captured in #1281.
We are receiving errors during the build of SHAP on Python 3.14 on MacOS with x86_64 architecture. We are using the beta release llvmlite==0.46.0b1 currently and receiving an error:
Traceback (most recent call last):
File "/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/ffi.py", line 141, in __getattr__
return self._fntab[name]
~~~~~~~~~~~^^^^^^
KeyError: 'LLVMPY_AddSymbol'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/ffi.py", line 122, in _load_lib
self._lib_handle = ctypes.CDLL(str(lib_path))
~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/ctypes/__init__.py", line 462, in __init__
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: dlopen(/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib, 0x0006): tried: '/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib' (no such file), '/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))during invocation of numba. See the complete pipeline here.
I checked on pypi and found this wheel:
llvmlite-0.46.0b1-cp314-cp314-macosx_11_0_universal2.whl (37.3 MB view details)
which suggest that they should work on x86_64 and arm64, but seems like they only work on arm64, or I am missing something?
- I have tried using the latest released version of llvmlite (most recent is
visible in the change log (https://github.com/numba/llvmlite/blob/main/CHANGE_LOG). - I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.