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

[Question] Nothing shows up when rendering environments? #337

Closed amirest123 closed 1 year ago

amirest123 commented 1 year ago

Question

Hi everyone, sorry if this has been covered or deemed too basic but I'm really having an issue here.

When I call render() exactly as it's used in the example code here I simply get a blank window. I'm using windows 11 and currently running python 3.10.10 through a VS code jupyter notebook. I have minigrid 2.2.0, gymnasium 0.26.3, and pygame 2.3.0. However I've tried meddling with different versions of all these things and no configuration seems to work for me, even using the older version of minigrid that runs with matplotlib instead of pygame just produces a blank plot. I am able to get the expected window when running manual_control.py but nothing when trying to use minigrid as intended outside of that. I'm also able to render base gym environments with pygame, eg the lunar landing environment. I'd very much appreciate any help anyone could give me, thanks.