Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.13k stars 610 forks source link

[Bug Report] Error after updating to MiniGrid 1.2.0 #232

Closed ibagur closed 2 years ago

ibagur commented 2 years ago

Describe the bug I have upgraded to MiniGrid 1.2 (after updating to gym 0.26), but for some reason I cannot get it run. I have forked and cloned the repository so to download the code, but haven't performed any changes to it yet.

Code example

I try to run just the manual control script over a simple environment:

./gym_minigrid/manual_control.py --env MiniGrid-Empty-5x5-v0

I get the following errors:

Traceback (most recent call last): File "./gym_minigrid/manual_control.py", line 102, in env = gym.make( File "/Users/inigo/.local/share/virtualenvs/test-minigrid-ZLPD9hGZ/lib/python3.8/site-packages/gym/envs/registration.py", line 652, in make raise e File "/Users/inigo/.local/share/virtualenvs/test-minigrid-ZLPD9hGZ/lib/python3.8/site-packages/gym/envs/registration.py", line 640, in make env = env_creator(_kwargs) File "/Users/inigo/Documents/cursos/Data Science/master_viu/work/test-minigrid/gym-minigrid/gym_minigrid/envs/empty.py", line 72, in init super().init( TypeError: init() got an unexpected keyword argument 'new_step_api'

System Info

git clone https://github.com/ibagur/gym-minigrid.git cd gym-minigrid pip3 install -e .

Additional context

It seems something related to 'new_step_api' argument, but I cannot relate it to other issues that made reference to it

Checklist

rodrigodelazcano commented 2 years ago

Sorry about this @ibagur and thank you for notifying the bug. This PR https://github.com/Farama-Foundation/MiniGrid/pull/233 should fix this issue. The fix will be included in the next release.