Skip to content

Fix NumPy 2.0+ compatibility for pybullet#4787

Open
koppi wants to merge 1 commit into
bulletphysics:masterfrom
bullet-physics-playground:fix-numpy-for-ubuntu-resolute
Open

Fix NumPy 2.0+ compatibility for pybullet#4787
koppi wants to merge 1 commit into
bulletphysics:masterfrom
bullet-physics-playground:fix-numpy-for-ubuntu-resolute

Conversation

@koppi

@koppi koppi commented May 2, 2026

Copy link
Copy Markdown

Add B3_PyArray_DATA macro that casts PyObject* to PyArrayObject* for NumPy 2.0+ where PyArray_DATA expects PyArrayObject*. Maintains backward compatibility with older NumPy versions.

Fixes build errors on Ubuntu Resolute with NumPy 2.x where PyArray_DATA calls had incompatible pointer types.

Add B3_PyArray_DATA macro that casts PyObject* to PyArrayObject* for
NumPy 2.0+ where PyArray_DATA expects PyArrayObject*. Maintains
backward compatibility with older NumPy versions.

Fixes build errors on Ubuntu Resolute with NumPy 2.x where
PyArray_DATA calls had incompatible pointer types.
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

Successfully merging this pull request may close these issues.

1 participant