PKU-Alignment / safety-gymnasium

NeurIPS 2023: Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark
https://safety-gymnasium.readthedocs.io/en/latest/
Apache License 2.0
377 stars 52 forks source link

Can Safety-Gymnasium run on the SSH Server[Question] #68

Closed SimonZhan-code closed 1 year ago

SimonZhan-code commented 1 year ago

Required prerequisites

Questions

Hi, a quick question does safety-gymnasium have to run in the local environment? Can we run it on the SSH Server?

I'm having the following bug report from glfw package running the toy example provided in the example folder on the SSH server: .local/lib/python3.8/site-packages/glfw/__init__.py:912: GLFWError: (65544) b'X11: Failed to open display :0.0' .local/lib/python3.8/site-packages/glfw/__init__.py:912: GLFWError: (65537) b'The GLFW library is not initialized' python: /builds/florianrhiem/pyGLFW/glfw-3.3.8/src/monitor.c:445: glfwGetVideoMode: Assertion 'monitor != ((void *)0)' failed. Aborted (core dumped)

Or, is there any way we can bypass the GUI initiation and run the safety-gymnasium GUI-free?

muchvo commented 1 year ago

Yes, simply change render mode to anything except 'human'.