Closed BUCKFAE closed 3 years ago
A few comments: -Gym officially does not support windows -This is a problem with Pyglet that those environments use for rendering, not with gym itself
From the readme:
"We support Python 3.6, 3.7, 3.8 and 3.9 on Linux and macOS. We will accept PRs related to Windows, but do not officially support it."
We're already planning to replace pyglet (there's another issue on this) so I'm going to close this issue given that and the above
I can't get gym work on WSL2 Windows 11.
Minimal example
When i execute the code it opens a window, displays one frame of the env, closes the window and opens another window in another location of my monitor. Most of the time the content of the window is just black, however sometimes it displays the environment correctly. In both cases the window instantly closes itself and opens the next frame somewhere else.
Troubleshooting i did
Xeyes
Running xeyes works just fine and as expected
Pygame
I installed pygame and wrote a minimal example to see if that works
This opens, after a few seconds, a window that displays a recangle - just as expected
Matplotlib
I installed VcXsrv as suggested here and ran a minimal example which worked just as expected as well. Without VcXsrv i had no output yet the script kept running.
System config
Windows version
Windows 11 - Version 21H2 (Build 22000.194)
WSL Status
Pip Freeze
TLDR
OpenAI Gym window flickers like crazy on WSL2.