This error seems to be gym related and while I’m not experienced with this library, I guess the method tries to display something?
If that’s the case, could you check if some visualization/rendering libs and other dependencies are installed, such as pyglet?