Skip to content

Runtime dependency on dbus-daemon #1

@TheMeaningfulEngineer

Description

@TheMeaningfulEngineer

Hey,
am just going through your code examples, and wanted to try out one where a service is being registered on the bus.

However the examples fails the following way:

./bigben_server
Traceback (most recent call last):
  File "./bigben_server", line 139, in <module>
    conn = dbus.Connection.bus_get(DBUS.BUS_SESSION, private = False)
  File "/usr/lib/python3.5/site-packages/dbussy.py", line 2843, in bus_get
    my_error.raise_if_set()
  File "/usr/lib/python3.5/site-packages/dbussy.py", line 4869, in raise_if_set
    raise DBusError(self.name, self.message)
dbussy.DBusError: org.freedesktop.DBus.Error.NotSupported -- Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

This is most likely an issue on my side given that it's the same issue that pops
up if I try to run, for example dbus-monitor.

However ./introspect system org.bluez /org/bluez/hci0 seems to be running
ok.

How do runtime dependencies for those two examples differ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions