ray icon indicating copy to clipboard operation
ray copied to clipboard

Environment rendering not supported with gymnasium

Open michalgregor opened this issue 2 years ago • 10 comments

Hi, it seems that the current version of RLlib does not support environment rendering – since the gym/gymnasium package changed and there is no longer a rendering module under classic_control from which to import SimpleImageViewer.

Do you know whether there are any plans to fix this? Is there a workaround?

michalgregor avatar Mar 04 '23 12:03 michalgregor

I also found this a problem. As a workaround, I would suggest creating your own renderer, but I debugged the code and found that although rllib supports a custom rendering option, at the initialization it is not checked and since the import fails it turns off rendering. They need to fix how the env_runner_v2.py calls the env.render() or does not turn off rendering after the failed import. I am also interested in a fix.

szkLaszlo avatar Apr 04 '23 13:04 szkLaszlo

Taking a look.

Rohan138 avatar May 24 '23 02:05 Rohan138

Meet the same problem.

FangyangJz avatar Jun 22 '23 09:06 FangyangJz

same problem mark 👀

emmaai avatar Jul 03 '23 10:07 emmaai

+1

adam-crowther avatar Jul 16 '23 13:07 adam-crowther

+1

Tim11011 avatar Sep 07 '23 09:09 Tim11011

Is this problem solved now? I met the same problem when I using "Rllib evaluate --render" 😢

Chasingdreams6 avatar Nov 10 '23 02:11 Chasingdreams6

+1

LaurenYTaylor avatar Jan 03 '24 23:01 LaurenYTaylor

Any update on this open issue? Seems like an fundemental feature (allowing to render and visually check RL policy performance by setting render_env=True) gone missing more than a year ago (or is there any workaround I missed?) ... @sven1977

dermuesli avatar Jan 30 '24 09:01 dermuesli

+1

alvaro-serra avatar May 19 '24 09:05 alvaro-serra