pydbus icon indicating copy to clipboard operation
pydbus copied to clipboard

Example accessing exported objects doesn't work

Open Paippi opened this issue 3 years ago • 0 comments

Hey,

I'm getting error trying to follow the accessing exported object guide.

I get an KeyError: 'object does not export any interfaces; you might need to pass object path as the 2nd argument for get()'

python verson: 3.9.9

Content of pip freeze

dbus-python==1.2.18
pgi==0.0.11.2
pycairo==1.20.1
pydbus==0.6.0
PyGObject==3.42.0

I'm using kernel 5.15.3-arch1-1 if that helps.

Steps to produce:

from pydbus import SystemBus
bus = SystemBus()
proxy = bus.get('org.freedesktop.NetworkManager',
                       '/org/freedesktop/NetworkManager/Devices/0')

Paippi avatar Nov 30 '21 19:11 Paippi