[Bug 1906939] Re: kde frontend, ModuleNotFoundError: No module named 'sip'

Ariel Faigon 1906939 at bugs.launchpad.net
Sun Feb 14 07:39:32 UTC 2021


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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to usb-creator in Ubuntu.
https://bugs.launchpad.net/bugs/1906939

Title:
  kde frontend, ModuleNotFoundError: No module named 'sip'

Status in usb-creator package in Ubuntu:
  Confirmed

Bug description:
  usb-creator-kde does not open

  :~$ 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'

  :~$ lsb_release -rd
  Description:    Ubuntu Hirsute Hippo (development branch)
  Release:        21.04

  : ~ $ apt-cache policy usb-creator-kde
  usb-creator-kde:
    Installed: 0.3.8
    Candidate: 0.3.8
    Version table:
   *** 0.3.8 500
          500 http://archive.ubuntu.com/ubuntu hirsute / universe amd64 Packages
          500 http://archive.ubuntu.com/ubuntu hirsute / universe i386 Packages
          100 / var / lib / dpkg / status

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: usb-creator-kde 0.3.8
  ProcVersionSignature: Ubuntu 5.8.0-31.33-generic 5.8.17
  Uname: Linux 5.8.0-31-generic x86_64
  ApportVersion: 2.20.11-0ubuntu55
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: LXQt
  Date: Sat Dec  5 15:24:43 2020
  InstallationDate: Installed on 2020-12-03 (2 days ago)
  InstallationMedia: Lubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
  PackageArchitecture: all
  SourcePackage: usb-creator
  UpgradeStatus: Upgraded to hirsute on 2020-12-03 (1 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1906939/+subscriptions



More information about the foundations-bugs mailing list