Farama-Foundation / Minigrid

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

A potential problem for the latest version 2.2.0 with pygame. #339

Closed shuzechen closed 1 year ago

shuzechen commented 1 year ago

I'm using the latest version 2.2.0. After I have cloned it from github, I ran the command ./minigrid/manual_control.py --env MiniGrid-Empty-8x8-v0. And an error occurred

File ".../gymnasium/envs/registration.py", line 642, in make
    env = env_creator(**_kwargs)
  File ".../minigrid/envs/empty.py", line 84, in __init__
    super().__init__(
TypeError: __init__() got an unexpected keyword argument 'screen_size'
BolunDai0216 commented 1 year ago

Can you run

import minigrid

minigrid.__version__

just to verify the version?

shuzechen commented 1 year ago

Solved. I use pip install minigrid and install version 2.1.1.

BolunDai0216 commented 1 year ago

Just to clarify, if you run pip install minigrid right now, is it still installing version 2.1.1?

shuzechen commented 1 year ago

No. It's now version 2.2.0.