Does anyone know how can i solve this problem? I run this command export QT_QPA_PLATFORM=offscreen , then i run the dir of python file then give me this error:

I am working in remote SSH server.
2023-08-28 14:22:20.403 ( 2.965s) [ 5A29E740]vtkXOpenGLRenderWindow.:1337 ERR| vtkXOpenGLRenderWindow (0x393dff0): bad X server connection. DISPLAY=
Aborted (core dumped)