Import cv2 - GLib-GObject:ERROR:../subprojects/glib-2.68.1/gobject/gtype.c:2800:g_type_register_static: assertion failed: (static_quark_type_flags)

Finally, I noticed that there are 2 versions of glib in my system… my bad…

However, It looks I really need to set WITH_GSTREAMER OFF to successfully get rid of this ERROR message:

➜  ~ python
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
**
GLib-GObject:ERROR:../subprojects/glib-2.68.1/gobject/gtype.c:2800:g_type_register_static: assertion failed: (static_quark_type_flags)
Bail out! GLib-GObject:ERROR:../subprojects/glib-2.68.1/gobject/gtype.c:2800:g_type_register_static: assertion failed: (static_quark_type_flags)
[2]    128157 abort (core dumped)  python