How to save total processes by video

Hi,
I use the Dockerfile [gridworld/Dockerfile at master · iglu-contest/gridworld · GitHub]
to build container.

env = gym.make('IGLUGridworld-v0',render=False)

I have to set render=False. otherwise, it will output error.

ContextException: Could not create GL context

Thus, I cannot use env.render() to generate “rgb_array”
However, I want to save total processes by video.

How to solve the problem??

2 Likes

Hi, you check code examples in the gridworld repo to see how to generate a video. For instance, use the following to try it out

IGLU_RENDER_REALTIME=1 IGLU_HEADLESS=0 python run_env.py

@artem_zholus might have more precision on this but that should get you started.