seveas / python-networkmanager

Easy communication with NetworkManager
http://packages.python.org/python-networkmanager/
Other
163 stars 90 forks source link

NetworkManager fails to import #57

Closed anrodlo closed 1 year ago

anrodlo commented 6 years ago

There is already a Debian Bug Report for this, both for python and python3.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896281 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896343

After installing python-networkmanager importing the module NetworkManager into a python interpreter fails with the following error:

Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/NetworkManager.py", line 99, in init_bus = dbus.SystemBus(private=True) File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 194, in new private=private) File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in new bus = BusConnection.new(subclass, bus_type, mainloop=mainloop) File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in new bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

Hadatko commented 3 years ago

I had this error only in docker when dbus system folder(/var/run/dbus) was not present on right place (docker /run/dbus).

seveas commented 1 year ago

Closing all PR's and issues prior to archiving this repository.