Griddly icon indicating copy to clipboard operation
Griddly copied to clipboard

KeyError: ‘render_modes’ with Gym == 0.25.0

Open ntoxeg opened this issue 3 years ago • 2 comments

Describe the bug Trying to create an environment with gym.make results in an exception

File "/Users/ntoxeg/Library/Caches/pypoetry/virtualenvs/narca-622vlgQS-py3.10/lib/python3.10/site-packages/gym/envs/registration.py", line 625, in make
    render_modes = env_creator.metadata["render_modes"]
KeyError: ‘render_modes'

To Reproduce Steps to reproduce the behavior: Install latest Gym (0.25.0 in my case). Invoke something like

env = gym.make(
        "GDY-Drunk-Dwarf-v0",
        player_observer_type=gd.ObserverType.VECTOR,
        level=0,
   )

Expected behavior Getting an instance of an environment.

Desktop (please complete the following information):

  • OS: macOS
  • Version 12.5

ntoxeg avatar Jul 28 '22 12:07 ntoxeg

I don’t know why Poetry installed the newest version even though I can see it pinned in the requirements.txt but I guess this report can be useful for squashing the rest of the bugs with newer Gym.

ntoxeg avatar Jul 28 '22 12:07 ntoxeg

relates to #196

Bam4d avatar Jul 28 '22 15:07 Bam4d

will be fixed in #282

Bam4d avatar Jun 02 '23 10:06 Bam4d