Attribute error: __enter__ #2257
Unanswered
rookie1999
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
Hi!
I am a graduate.
My setup
My mujoco version is 2.3.7
My question
My code is listed as follows:
And an error occurs.
AttributeError Traceback (most recent call last)
Cell In[3], line 26
24 frames = []
25 mujoco.mj_resetData(model, data)
---> 26 with mujoco.Renderer(model) as renderer:
27 while data.time < duration:
28 mujoco.mj_step(model, data)
AttributeError: enter
Minimal model and/or code that explain my question
If you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue).
Model:
minimal XML
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions