You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Summary:
When installing the project dependencies on macOS using an M chip, an incompatibility issue arises during the execution of the demo example. Specifically, modules that were compiled using NumPy 1.x cannot be run with the latest version of NumPy (2.1.2), as it causes a crash.
Steps to Reproduce:
Set up a development environment on macOS with an M chip.
Follow the installation instructions to install project dependencies.
Run the demo example that rely on NumPy.
Observed Behavior:
A crash occurs with the following error message:
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.2 as it may crash.
Workaround: I was able to solve the issue by manually downgrading NumPy to version 1.26.4:
pip install numpy==1.26.4
Root Cause:
The issue stems from the project's requirements+cpu.txt, which does not explicitly specify a compatible version of NumPy. The absence of strict versioning allows pip to install NumPy 2.1.2, which is incompatible with modules compiled for NumPy 1.x.
Proposed Solution:
Update the requirements+cpu.txt to include an explicit version constraint for NumPy or modules must be compiled with NumPy 2.0. Some module may need to rebuild instead.
numpy>=1.26.4,<2.0
The text was updated successfully, but these errors were encountered:
Issue Summary:
When installing the project dependencies on macOS using an M chip, an incompatibility issue arises during the execution of the demo example. Specifically, modules that were compiled using NumPy 1.x cannot be run with the latest version of NumPy (2.1.2), as it causes a crash.
Steps to Reproduce:
Observed Behavior:
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.2 as it may crash.
Workaround: I was able to solve the issue by manually downgrading NumPy to version 1.26.4:
Root Cause:
The issue stems from the project's requirements+cpu.txt, which does not explicitly specify a compatible version of NumPy. The absence of strict versioning allows pip to install NumPy 2.1.2, which is incompatible with modules compiled for NumPy 1.x.
Proposed Solution:
Update the requirements+cpu.txt to include an explicit version constraint for NumPy or modules must be compiled with NumPy 2.0. Some module may need to rebuild instead.
The text was updated successfully, but these errors were encountered: