python3 idsImuParser.py xxxxx.log
Unable to init server: Could not connect: Connection refused
Unable to init server: 无法连接: Connection refused
(idsImuParser.py:5775): Gdk-CRITICAL **: 19:24:34.633: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
解决办法:
如下图是tmux界面:
在ssh的界面执行 export DISPLAY=:1 环境变量值改为1.
另外,就是直接到Linux的Terminal终端上执行Python脚本。