A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "c:\Windows\System32\Deep-Live-Cam\run.py", line 3, in
from modules import core
File "c:\Windows\System32\Deep-Live-Cam\modules\core.py", line 15, in
import onnxruntime
File "c:\Python310\lib\site-packages\onnxruntime_init_.py", line 23, in
from onnxruntime.capi.pybind_state import ExecutionMode # noqa: F401
File "c:\Python310\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in
from .onnxruntime_pybind11_state import * # noqa
AttributeError: ARRAY_API not found
Traceback (most recent call last):
File "c:\Windows\System32\Deep-Live-Cam\run.py", line 3, in
from modules import core
File "c:\Windows\System32\Deep-Live-Cam\modules\core.py", line 15, in
import onnxruntime
File "c:\Python310\lib\site-packages\onnxruntime_init.py", line 57, in
raise import_capi_exception
File "c:\Python310\lib\site-packages\onnxruntime_init.py", line 23, in
from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401
File "c:\Python310\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in
from .onnxruntime_pybind11_state import * # noqa
ImportError
This error is likely due to a mismatch between the NumPy version used during module compilation (1.x) and the one currently installed (2.x).
You can try downgrading NumPy to 1.24.4:
pip uninstall numpy
pip install numpy==1.24.4
After that, re-run the project. It should work fine. Hope this helps.