欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

树莓派,运行python+opencv+pyqt5编写的程序报错[g_object_new_with_properties: assertion ‘G_TYPE_IS_OBJECT (object_]

程序员文章站 2022-05-16 14:21:21
...

运行python+opencv+pyqt5编写的程序报错:

(python3:1189): GLib-GObject-WARNING **: 16:04:17.951: cannot register existing type 'GdkDisplayManager'

(python3:1189): GLib-CRITICAL **: 16:04:17.951: g_once_init_leave: assertion 'result != 0' failed

(python3:1189): GLib-GObject-CRITICAL **: 16:04:17.951: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

树莓派,运行python+opencv+pyqt5编写的程序报错[g_object_new_with_properties: assertion ‘G_TYPE_IS_OBJECT (object_]
无意间发现了一篇宝藏博客,解决了几天的烦恼,推荐一下:
Python, 树莓派, cv2: Glib-Gobject-Warning **: cannot register existing type ‘GDKDisplayManager‘