Comment 5 for bug 1906939

Revision history for this message
Ariel Faigon (ariel.faigon) wrote :

Some more info, with the hope this is helpful.

installing python3-sip didn't work for me:

```
% sudo apt install python3-sip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-sip is already the newest version (4.19.7+dfsg-1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.

% /usr/bin/usb-creator-kde
Traceback (most recent call last):
  File "/usr/bin/usb-creator-kde", line 21, in <module>
    import sip
ModuleNotFoundError: No module named 'sip'
```

This is because of needing to support multiple `python3` versions:

```
% sudo update-alternatives --config python3
There are 3 choices for the alternative python3 (providing /usr/bin/python3).

  Selection Path Priority Status
------------------------------------------------------------
  0 /usr/bin/python3.8 3 auto mode
  1 /usr/bin/python3.6 1 manual mode
* 2 /usr/bin/python3.7 2 manual mode
  3 /usr/bin/python3.8 3 manual mode
```

Installing `sip` (for the python3.7 env) with `python3 -m pip --user --upgrade sip` (keeping the system python install intact, doesn't solve the problem either). Same import error.

If I edit the shebang line of /usr/bin/usb-creator-kde to the more explicit:

    #!/usr/bin/python3.6

the script starts without failing the import.

However, it fails immediately after with a popup "An error occurred while talking to the udisks service"

    systemctl list-units | grep udisks

shows there's a `udisks2` service but not a `udisks` service.

So yes, this is a simple dependency issue that keeps growing over time.