quangthanh010290 / keyboard_mouse_emulate_on_raspberry

Bluetooth Keyboard Mouse Emulator on Raspberry Pi
https://thanhlev.github.io/
MIT License
289 stars 98 forks source link

Can't run client #37

Open noahpi opened 1 year ago

noahpi commented 1 year ago

Can't run any of the clients, but this is specifically what I get when trying to run ./keyboard/kb_client.py

``noah@raspberrypi:~/keyboard_mouse_emulate_on_raspberry $ ./keyboard/kb_client.py Setting up keyboard setting up DBus Client Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner return self.get_name_owner(bus_name) File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH, File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking reply_message = self.send_message_with_reply_and_block( dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.thanhle.btkbservice': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/noah/keyboard_mouse_emulate_on_raspberry/./keyboard/kb_client.py", line 109, in kb = Keyboard() File "/home/noah/keyboard_mouse_emulate_on_raspberry/./keyboard/kb_client.py", line 47, in init self.btkservice = self.bus.get_object( File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object return self.ProxyObjectClass(self, bus_name, object_path, File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in init self._named_service = conn.activate_name_owner(bus_name) File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner self.start_service_by_name(bus_name) File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH, File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking reply_message = self.send_message_with_reply_and_block( dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.thanhle.btkbservice was not provided by any .service files

gomcodoctor commented 1 year ago

same error here

ray-lee-94 commented 11 months ago

@noahpi you should register the service org.thanhle.btkbservice

walkinrey commented 6 months ago

same problem, i don't understand how to register a service