[Python-modules-team] Bug#896343: Bug#896281: python-networkmanager: NetworkManager fails to import

Simon McVittie smcv at debian.org
Mon Apr 23 19:29:18 BST 2018


On Mon, 23 Apr 2018 at 20:36:43 +0300, Adrian Bunk wrote:
> On Fri, Apr 20, 2018 at 10:01:05PM +0200, Helmut Grohne wrote:
> > After installing python-networkmanager importing the module NetworkManager
> > into a python interpreter fails with the following error:
...
> > dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
> >...
> 
> dbus is not running in a chroot (which is correct).

Ideally these modules would connect to the system bus on first use
(for instance when an interesting object is instantiated) instead of
connecting as a side-effect of being imported. That would allow the
contents of the module to be listed (for instance for sphinx autodoc)
without needing a system bus.

    smcv



More information about the Python-modules-team mailing list