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

upgrade pybind11 to a version >=2.12.0 #31

Open
berndpfrommer opened this issue Dec 9, 2024 · 3 comments
Open

upgrade pybind11 to a version >=2.12.0 #31

berndpfrommer opened this issue Dec 9, 2024 · 3 comments
Labels

Comments

@berndpfrommer
Copy link

berndpfrommer commented Dec 9, 2024

Numpy 2 introduced binary incompatibility with respect to numpy 1.. This breaks my code which relies on pybind11.
The latest version of pybind11 promises to fix that such that modules will work with both numpy 1 and 2.
Would be nice to see this improvement arrive for the ROS2 community.
Thanks!

@sloretz
Copy link
Contributor

sloretz commented Dec 20, 2024

Thanks for the report! The vendor package tracks the version of python3-pybind11 in Ubuntu. It looks like the next ubuntu LTS release will have a version greater than 2.12.0. I would expect ROS L-turtle will be the first with pybind11 >= 2.12.0 because ROS Kilted still targets Ubuntu Noble.

@berndpfrommer
Copy link
Author

What is the recommended way for me to work around this?
Thanks!

@sloretz
Copy link
Contributor

sloretz commented Dec 20, 2024

What is the recommended way for me to work around this?

I assume if you're using numpy 2 you probably installed it with pip. If you're using Ubuntu, I'd recommend using using the system package python3-numpy which is still verison 1.

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

No branches or pull requests

2 participants