GLFWError: (65544) b‘X11: The DISPLAY environment variable is missing‘

created at 03-23-2022 views: 84


Connect to the server remotely in vscode and use RLlib to report the following warning

GLFWError: (65544) b'X11: The DISPLAY environment variable is missing'

Although this is just a warning, it will affect me to see other meaningful warning information every time it appears. There are the following solutions on the Internet.

export DISPLAY=:0.0

But doing so will report the following warning again

GLFWError: (65544) b'X11: Failed to open display :0.0'

a solution

A solution that can solve the warning is as follows: Change the following information in glfw/

ERROR_REPORTING = 'ignore' # 'warn'
created at:03-23-2022
edited at: 03-23-2022: