Skip to content

Example accessing exported objects doesn't work #99

@Paippi

Description

@Paippi

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')

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