Fail connecting to DBus

tj5527 <tj5527-g/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <B4F61y_00Vy7_9IyV_MgN4k6tm_2WGixAAS0O9uzjVESrJP8pv2he_9PniGZNJ_feCQcGVkW7lH9nUBUQHhiEOtpZ_HYokEonR8iWAFiuYo=@protonmail.com>
I am new to DBus, and am practicing using python dbus for fun. Following the code at https://stackoverflow.com/questions/33250864/getting-signals-working-on-pulseaudios-dbus-interface#33776607 When executing python script it complains

    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /run/user/1001/pulse/dbus-socket: No such file or directory

What might cause this error and how to fix that?

My environment is Ubuntu 16.04 LTS, python 3.5.2.

Thanks

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.