-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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:
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
Metadata
Metadata
Assignees
Labels
No labels