Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import numpy fails #22

Open
ncguilbeault opened this issue Nov 19, 2024 · 0 comments
Open

Import numpy fails #22

ncguilbeault opened this issue Nov 19, 2024 · 0 comments

Comments

@ncguilbeault
Copy link
Contributor

ncguilbeault commented Nov 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant