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

_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to