Breakend / gym-extensions

This repo is intended as an extension for OpenAI Gym for auxiliary tasks (multitask learning, transfer learning, inverse reinforcement learning, etc.)
https://breakend.github.io/gym-extensions/
Other
213 stars 41 forks source link

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

Open Boey-li opened 2 years ago

Boey-li commented 2 years ago

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.

ruipengZ commented 1 year ago

same

yanmmmm commented 1 year ago

same problem

staycoolish commented 6 months ago

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