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

AttributeError: 'MjData' object has no attribute 'qLDiagSqrtInv' #509

Open
vaxenburg opened this issue Jan 15, 2025 · 0 comments
Open

AttributeError: 'MjData' object has no attribute 'qLDiagSqrtInv' #509

vaxenburg opened this issue Jan 15, 2025 · 0 comments

Comments

@vaxenburg
Copy link
Contributor

The Jan 14, 2025 MuJoCo update introduced a breaking change affecting dm_control.

To reproduce:

from dm_control.locomotion.examples.basic_rodent_2020 import rodent_escape_bowl
env = rodent_escape_bowl()

Traceback:

AttributeError                            Traceback (most recent call last)

[<ipython-input-3-87280df10d82>](https://localhost:8080/#) in <cell line: 1>()
----> 1 env = rodent_escape_bowl()

11 frames

[/usr/local/lib/python3.10/dist-packages/dm_control/mujoco/index.py](https://localhost:8080/#) in struct_indexer(struct, struct_name, size_to_axis_indexer)
    626     # Skip over structured arrays and fields that have sizes but aren't numpy
    627     # arrays, such as text fields and contacts (b/34805932).
--> 628     attr = getattr(struct, field_name)
    629     if not isinstance(attr, np.ndarray) or attr.dtype.fields:
    630       continue

AttributeError: 'MjData' object has no attribute 'qLDiagSqrtInv'
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