Fixing Common Gymnasium / Stable baselines errors
I ran into issues while learning gymnasium and this is how I fixed them.
During my time learning, I've come across numerous errors while using Gymnasium and Stable Baselines, here is how I fixed some of them.
AttributeError: 'mujoco._structs.MjData' object has no attribute 'solver_iter'. Did you mean: 'solver_niter'?
Using a not-yet merged fix on Git Hub in the Gymnasium library commit below, you can get around this error. Hopefully, this won't be an issue for much longer as the changes get merged into a future release.
Approximately line 593, replace
bottomleft, "Solver iterations", str(self.data.solver_iter + 1)
with
bottomleft, "Solver iterations", str(self.data.solver_niter[0] + 1)
This page will update over time.
Comments ()