Description
Env: Ray 2.2.0, gym: 0.21.0
Ran the sample dreamer code below listed on Ray doc site:
from ray.rllib.algorithms.dreamer import DreamerConfig
config = DreamerConfig().training(gamma=0.9, lr=0.01)
config = config.resources(num_gpus=1)
config = config.rollouts(num_rollout_workers=0)
config = config.framework("torch")
print(config.to_dict())
# Build a Algorithm object from the config and run 1 training iteration.
algo = config.build(env="CartPole-v1")
algo.train()
Got the following error:
miniconda3/envs/ray/lib/python3.8/site-packages/gym/envs/registration.py", line 90, in make
env = cls(**_kwargs)
TypeError: init() got an unexpected keyword argument 'frame_skip'.
I tried different gym version 0.22.0 but the error persisted. Any help is appreciated.
Activity