[Bug 2154237] [NEW] ImportError: cannot import name 'uic' from 'PyQt6'

Daniel Tang 2154237 at bugs.launchpad.net
Mon May 25 23:33:44 UTC 2026


Public bug reported:

I cannot run `software-properties-qt` immediately after apt-installing
it on Kubuntu 26.04.

# Expected behavior

It should not crash

# Actual behavior

```console
home at daniel-desktop3:~$ GDK_BACKEND=wayland software-properties-qt
Traceback (most recent call last):
  File "/usr/bin/software-properties-qt", line 36, in <module>
    from softwareproperties.qt.SoftwarePropertiesQt import SoftwarePropertiesQt
  File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 37, in <module>
    from PyQt6 import uic
ImportError: cannot import name 'uic' from 'PyQt6' (/usr/lib/python3/dist-packages/PyQt6/__init__.py)
```

# Workaround

```bash
sudo apt install pyqt6-dev-tools
```

# Analysis

Please adjust the packaging of python3-pyqt6. Either:
* Soften the hard-dependency on uic
* Merge package pyqt6-dev-tools with package python3-pyqt6
* Add `Depends: pyqt6-dev-tools` to python3-pyqt6's control

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: software-properties-qt 0.120
ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
Uname: Linux 7.0.0-15-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Mon May 25 19:31:05 2026
InstallationDate: Installed on 2022-11-05 (1298 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: Upgraded to resolute on 2026-04-24 (32 days ago)

** Affects: pyqt6 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute third-party-packages wayland-session

** Also affects: pyqt6 (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  ImportError: cannot import name 'uic' from 'PyQt6'

Status in pyqt6 package in Ubuntu:
  New
Status in software-properties package in Ubuntu:
  New

Bug description:
  I cannot run `software-properties-qt` immediately after apt-installing
  it on Kubuntu 26.04.

  # Expected behavior

  It should not crash

  # Actual behavior

  ```console
  home at daniel-desktop3:~$ GDK_BACKEND=wayland software-properties-qt
  Traceback (most recent call last):
    File "/usr/bin/software-properties-qt", line 36, in <module>
      from softwareproperties.qt.SoftwarePropertiesQt import SoftwarePropertiesQt
    File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 37, in <module>
      from PyQt6 import uic
  ImportError: cannot import name 'uic' from 'PyQt6' (/usr/lib/python3/dist-packages/PyQt6/__init__.py)
  ```

  # Workaround

  ```bash
  sudo apt install pyqt6-dev-tools
  ```

  # Analysis

  Please adjust the packaging of python3-pyqt6. Either:
  * Soften the hard-dependency on uic
  * Merge package pyqt6-dev-tools with package python3-pyqt6
  * Add `Depends: pyqt6-dev-tools` to python3-pyqt6's control

  ProblemType: Bug
  DistroRelease: Ubuntu 26.04
  Package: software-properties-qt 0.120
  ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
  Uname: Linux 7.0.0-15-generic x86_64
  ApportVersion: 2.34.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  Date: Mon May 25 19:31:05 2026
  InstallationDate: Installed on 2022-11-05 (1298 days ago)
  InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
  PackageArchitecture: all
  SourcePackage: software-properties
  UpgradeStatus: Upgraded to resolute on 2026-04-24 (32 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyqt6/+bug/2154237/+subscriptions





More information about the foundations-bugs mailing list