DeprecationWarning: Gio.DBusConnection.register_object is deprecated

Hi!

I’m getting DeprecationWarning: Gio.DBusConnection.register_object is deprecated with my implementation of an MPRIS interface. Where does this deprecation come from and where can I find an explanation about it? Looking at the GIO docs I can’t find a notice about this deprecation.

That’s caused by PyGObject using g_dbus_connection_register_object_with_closures() to provide the register_object() method.

Ideally, PyGObject should use register_object_with_closures2() if it is available. You should file an issue against PyGObject.

Thanks! Here is the issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.