Closed zspher closed 9 months ago
Hi! I am not very familiar with the python dbus API unfortunately...
when using GLib.Variant('d(du)', (0.5, GLib.Variant('(du)', (0.0, 0)))) - d(du), TypeError: ("Invalid GVariant format string '%s'", > 'd(du)') is thrown however when using GLib.Variant('(d(du))', (0.5, GLib.Variant('(du)', (0.0, 0)))) - (d(du)) everything in a tuple, no error is thrown
Perhaps this is a bug in the library? I mean, busctl
accepts it and the sd-bus
library allows it!
yup this might be a problem with the python library
To give context, i am trying to automate
clightd
with Gio.DBusProxy in python. Relevant parts of the script are as follows:when using
GLib.Variant('d(du)', (0.5, GLib.Variant('(du)', (0.0, 0))))
-d(du)
,TypeError: ("Invalid GVariant format string '%s'", 'd(du)')
is thrownhowever when using
GLib.Variant('(d(du))', (0.5, GLib.Variant('(du)', (0.0, 0))))
-(d(du))
everything in a tuple, no error is thrownthe clightd API accepts
d(du)
(e.g./org/clightd/clightd/Backlight2
Set
) so i can't automate it with GDbus. Anyway, just going to usebusctl
.