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
It seems that under certain circumstances, the latest versions of numpy (v2) are incompatible with the Bonsai.Scripting.Python package. After doing pip install numpy, attempting to import numpy in Bonsai will throw an error:
Bonsai.WorkflowRuntimeException: Error import numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there
Steps to reproduce
OS is Windows 11.
Python version is 3.12.
Numpy version is 2.1.3.
Create a virtual environment and install numpy inside. Attempt to import numpy in Bonsai and it will throw an error.
Solution
A quick fix is to install a lesser version of numpy, for example pip install numpy==1.26.4
The text was updated successfully, but these errors were encountered:
Description of issue
It seems that under certain circumstances, the latest versions of numpy (v2) are incompatible with the Bonsai.Scripting.Python package. After doing
pip install numpy
, attempting to import numpy in Bonsai will throw an error:Steps to reproduce
OS is Windows 11.
Python version is 3.12.
Numpy version is 2.1.3.
Create a virtual environment and install numpy inside. Attempt to import numpy in Bonsai and it will throw an error.
Solution
A quick fix is to install a lesser version of numpy, for example
pip install numpy==1.26.4
The text was updated successfully, but these errors were encountered: