pyglet.gl.ContextException: Could not create GL context
This error raises with the code as is from the repository and the environment set with the requirements.txt. file.
I post the full traceback here:
Traceback (most recent call last):
File "local_evaluation.py", line 187, in <module>
evaluate(LocalEvalConfig)
File "local_evaluation.py", line 85, in evaluate
env = create_single_env(render=LocalEvalConfig.RENDER,
File "local_evaluation.py", line 13, in create_single_env
return gym.make('IGLUGridworld-v0' if render else 'IGLUGridworldVector-v0',
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/gym/envs/registration.py", line 235, in make
return registry.make(id, **kwargs)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/gym/envs/registration.py", line 129, in make
env = spec.make(**kwargs)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/gym/envs/registration.py", line 90, in make
env = cls(**_kwargs)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/gridworld/env.py", line 301, in create_env
env = GridWorld(
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/gridworld/env.py", line 102, in __init__
from gridworld.render import Renderer, setup
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/gridworld/render.py", line 5, in <module>
from pyglet.window import Window
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/pyglet/window/__init__.py", line 1918, in <module>
gl._create_shadow_window()
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/pyglet/gl/__init__.py", line 206, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/pyglet/window/headless/__init__.py", line 60, in __init__
super().__init__(*args, **kwargs)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/pyglet/window/__init__.py", line 615, in __init__
context = config.create_context(gl.current_context)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/pyglet/gl/headless.py", line 123, in create_context
return HeadlessContext(self, share)
File "/home/mauri/anaconda3/envs/iglu_challenge/lib/python3.8/site-packages/pyglet/gl/headless.py", line 134, in __init__
raise gl.ContextException('Could not create GL context')
pyglet.gl.ContextException: Could not create GL context
I'm running local on a laptop with Intel Corporation HD Graphics 620 and OpenGL version 3.0 Mesa 19.2.8.