gym-extensions icon indicating copy to clipboard operation
gym-extensions copied to clipboard

TypeError: __init__() missing 1 required positional argument: 'observation_space'

Open Boey-li opened this issue 2 years ago • 3 comments

Hi,

When I follow the usage

"" from gym_extensions.continuous import mujoco env = gym.make("HalfCheetahGravityHalf-v0") """

It shows the error:

TypeError: init() missing 1 required positional argument: 'observation_space'

I wonder is it caused by the version of gym? I used 'gym-0.25.2' for the experiment.

Boey-li avatar Oct 25 '22 03:10 Boey-li

same

ruipengZ avatar May 04 '23 15:05 ruipengZ

same problem

yanmmmm avatar Jul 20 '23 09:07 yanmmmm

try this:

pip uninstall gym
pip install gym==0.23.1

According to setup.py in D4RL, gym version must be lower than 0.24

staycoolish avatar Apr 11 '24 21:04 staycoolish