Skip to content

Conversation

@christophercrouzet
Copy link

@christophercrouzet christophercrouzet commented Jan 5, 2026

Following the release of Warp v1.11.0, deprecation warnings were added for symbols meant to be internal. This MR addresses most of these warnings by referencing the public API instead.

Additionally this:

  • Fixes tests that couldn't be run in standalone mode.
  • Bumps mujoco to 3.4.1.dev851315742 since the previously used version doesn't seem available anymore.

Running a Python file with relative imports yields an `ImportError`
with `attempted relative import with no known parent package`.
@google-cla
Copy link

google-cla bot commented Jan 5, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@christophercrouzet christophercrouzet force-pushed the ccrouzet/fix-warp-deprecations branch 2 times, most recently from ac71177 to dd1e193 Compare January 6, 2026 00:51
@christophercrouzet christophercrouzet force-pushed the ccrouzet/fix-warp-deprecations branch from dd1e193 to 419b111 Compare January 6, 2026 01:00
@christophercrouzet christophercrouzet marked this pull request as draft January 6, 2026 01:07
from mujoco_warp import test_data

from . import collision_driver
from mujoco_warp._src import collision_driver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change necessary?

Copy link
Author

@christophercrouzet christophercrouzet Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only to solve running tests outside of pytest, otherwise the following error happen:

python ./mujoco_warp/_src/broadphase_test.py
Traceback (most recent call last):
  File "./mujoco_warp/_src/broadphase_test.py", line 29, in <module>
    from . import collision_driver
ImportError: attempted relative import with no known parent package

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikfrey are we good to change the imports? we considered this before #760 but decided against it at the time.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair - I'm OK with this change.

@christophercrouzet christophercrouzet marked this pull request as ready for review January 9, 2026 02:29
@christophercrouzet christophercrouzet changed the title Draft: Address Warp Deprecation Warnings Address Warp Deprecation Warnings Jan 9, 2026
@thowell thowell requested a review from erikfrey January 9, 2026 09:33
Copy link
Collaborator

@erikfrey erikfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup! I think we should revert the changes to pyproject.toml but otherwise LGTM

"mujoco>=3.3.7",
"numpy",
"warp-lang>=1.9.1",
"warp-lang>=1.11.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need these changes? we should only change this if mjwarp no longer works with >=1.9.1 - is that the case?

"pygls>=1.0.0,<2.0.0",
"lsprotocol>=2023.0.1,<2024.0.0",
"mujoco>=3.3.7.dev0",
"warp-lang>=1.9.1.dev0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We put this here because when we develop, we want to use a Warp nightly. Please revert this change.

from mujoco_warp import test_data

from . import collision_driver
from mujoco_warp._src import collision_driver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair - I'm OK with this change.

Copy link
Collaborator

@erikfrey erikfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh please also clean up the linter errors. I think you just need to run ruff check --fix.

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.

3 participants