Updating to numpy 2.0 results to crashes #5218
Unanswered
MagiRomanya
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I think it may be related to v2.12.0 of pybind that enabled numpy 2 support. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think this may be related to your version of pybind11. Numpy 2 support only exixst from version 2.12 onward. Unfortunately on some system, an older version is packaged by default. In my case, Ubuntu 22.04, comes only with 2.9.2, without numpy 2 support. Using FetchContent, to enforce pybind11 2.13.6 solved this issue for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After updating my system, I've been experiencing crashes in previously functional code. Here is a simplified version of the code:
In my tests this only crashes with numpy 2.0 and not with 1.26.0. Is this is a bug in pybind11 or that I just programmed this naively expecting an implicit conversion from python list to np.array to Eigen::Matrix?
Beta Was this translation helpful? Give feedback.
All reactions