gym
gym copied to clipboard
[Question] Can you help me with this error?
Question
AttributeError Traceback (most recent call last)
1 frames
/usr/local/lib/python3.9/dist-packages/gym/core.py in getattr(self, name)
322 """Returns an attribute with name
, unless name
starts with an underscore."""
323 if name.startswith("_"):
--> 324 raise AttributeError(f"accessing private attribute '{name}' is prohibited")
325 return getattr(self.env, name)
326
AttributeError: accessing private attribute '_get_obs' is prohibited
Gym currently disables users from accessing "private" variables which start with an underscore, this includes _get_obs
.
Why do you need this function as you should just need to use env.reset()
or env.step()
to access the obs?