Ubuntu18.04 运行大华sdk程序出现错误qt.qpa.plugin: Could not load the Qt platform plugin xcb

最近在公司使用向日葵访问外面服务的时候,需要查看运行的大华摄像头服务是否启动,通过命令查看服务没有启动,就收到启动服务,就会报错,如下:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/home/XXX/.local/lib/python3.7/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x2884760) is not the object's thread (0x5bf1580).
Cannot move to target thread (0x2884760)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/XXX/.local/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

我在网上找了很多方法,都试过了,没有成功的,后来我把服务器上的代码和环境传到自己的电脑上运行,发现都没有错,我就认为是服务器的系统出了问题,因为前段时候突然停电了。我就去现场准备重新系统,可是发现在现场的系统上,服务是可以起来的,而且重启服务也是可以一并加载的,这就奇怪了,后来发现是向日葵的问题,向日葵没法界面访问其他的电脑,沃日了哦,需要重新配置向日葵,这里就是一个记录,没啥。

你可能感兴趣的:(报错,ubuntu)