Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run client #37

Open
noahpi opened this issue Oct 26, 2022 · 3 comments
Open

Can't run client #37

noahpi opened this issue Oct 26, 2022 · 3 comments

Comments

@noahpi
Copy link

noahpi commented Oct 26, 2022

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
Copy link

same error here

@ray-lee-94
Copy link

ray-lee-94 commented Aug 9, 2023

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

@walkinrey
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants