taoso / btk

虚拟蓝牙键盘(BlueTooth Keyboard)
MIT License
273 stars 42 forks source link

looking at pydbus 0.5.1 #16

Open hh opened 8 years ago

hh commented 8 years ago

It's a start, at least we get on the right bus, and are calling the register.

# python dbus.py                                                               
(process:1467): GLib-GIO-CRITICAL **: g_bus_own_name_on_connection: assertion 'g_dbus_is_name (name) && !g_dbus_is_unique_name (name)' failed
Traceback (most recent call last):
  File "dbus.py", line 77, in <module>
    foo = Foo(bus=bus, path='/net/lvht/Foo')
  File "dbus.py", line 20, in __init__
    bus.publish(path,self)
  File "/root/btk/src/pydbus/pydbus/publication.py", line 33, in publish
    return Publication(self, bus_name, *objects)
  File "/root/btk/src/pydbus/pydbus/publication.py", line 26, in __init__
    self._at_exit(bus.register_object(path, object, node_info).__exit__)
  File "/root/btk/src/pydbus/pydbus/registration.py", line 125, in register_object
    return ObjectRegistration(self.con, path, interfaces, wrapper, own_wrapper=True)
  File "/root/btk/src/pydbus/pydbus/registration.py", line 105, in __init__
    ids = [con.register_object(path, interface, wrapper.call_method, wrapper.get_property, wrapper.set_property) for interface in interfaces]
TypeError: argument vtable: Expected Gio.DBusInterfaceVTable, but got pydbus.registration.instancemethod