Skip to content

Dreamer error: frame_skip unexpected #32508

Closed
@janetwise

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    staleThe issue is stale. It will be closed within 7 days unless there are further conversation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions