Dbus-python not found when installed from pkcon

I am trying to setup eduraom wifi connection on Salifish OS.

By using the script from cat.eduroam.org, I can successfully set it up.

However, ideally, the script uses dbus-python to setup.

DBus module not found - please install dbus-python! NetworkManager configuration failed, but we may generate a wpa_supplicant configuration file if you wish. Be warned that your connection password will be saved in this file as clear text.

However, I have installed dbus-python3-devel from pkcon.

I am new to salifish and I apologize if it is actually documented somewhere and I failed to find it.

By looking at the script, I think it fails here

try:
    import dbus
except ImportError:
    print("WARNING: Cannot import the dbus module - please install dbus-python!")
    debug("Cannot import the dbus module")
    NM_AVAILABLE = False

Sailfish OS does not use NetworkManager, which is apparently what the script tries to use to configure the network via DBus:

So even if it succeeded with the dbus import, that wouldn’t change much in what the script will do (presumably, I haven’t looked at it.)

You are unlikely to need that.

The proper name for the Python dbus module is python3-dbus, and that should come preinstalled AFAIK. If not, try pkcon install python3-dbus.

1 Like

I see, thank you! Now I understand why I can’t find dbus-python3, so it’s naming is reversed.

This appears a bit strange given the package is https://github.com/sailfishos/dbus-python3.

Then I guess I have to stick to the plaintext password version.