[Bug 2109305] Re: migrate old Qt.Foo names to Qt.Enum.Foo for PyQt6 compatibility
Najip Ali Munajat
2109305 at bugs.launchpad.net
Wed Apr 30 03:32:43 UTC 2025
** Package changed: software-properties (Ubuntu) => software-properties-
qt (Ubuntu)
--
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/2109305
Title:
migrate old Qt.Foo names to Qt.Enum.Foo for PyQt6 compatibility
Status in software-properties-qt package in Ubuntu:
New
Bug description:
On Lubuntu 25.04, when I launch “Software & Updates” (software-
properties-qt) under PyQt6/Qt6, the mirror-selection dialog
immediately crashes with Python AttributeError messages. This prevents
me from changing my download mirror in the GUI.
Steps to reproduce:
Install Lubuntu 25.04 and ensure software-properties-qt is at version
0.111.
Install PyQt6 (e.g. sudo apt install python3-pyqt6).
Run sudo software-properties-qt from a terminal.
Observe the traceback:
pgsql
Copy
Edit
AttributeError: type object 'Qt' has no attribute 'AscendingOrder'
followed by similar errors for MatchExactly, WindowModal, BlockingQueuedConnection, etc.
Actual behavior:
The tool crashes before showing any mirror options, printing a Python
traceback about missing Qt enum attributes.
Expected behavior:
The mirror-selection dialog should open normally, list available
download servers, allow me to sort and select one, and then reload the
package lists.
Environment:
Lubuntu 25.04 (AMD64)
software-properties-qt 0.111
Python 3.12
PyQt6 / Qt 6.5
Regression:
Worked correctly under PyQt5/Qt5 in earlier Ubuntu/Lubuntu releases.
Workaround:
I manually edited DialogMirror.py to replace old enum references
(Qt.AscendingOrder, Qt.MatchExactly, etc.) with the new Qt6 scoped
enums (Qt.SortOrder.AscendingOrder, Qt.MatchFlag.MatchExactly, etc.),
plus added the missing PyQt6.QtWidgets imports.
Please update the Ubuntu package so that software-properties-qt is
compatible out of the box with PyQt6/Qt6.
ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: software-properties-qt 0.111 [modified: usr/lib/python3/dist-packages/softwareproperties/qt/DialogMirror.py]
ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
Uname: Linux 6.14.0-15-generic x86_64
ApportVersion: 2.32.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: LXQt
Date: Fri Apr 25 09:11:35 2025
InstallationDate: Installed on 2025-04-25 (0 days ago)
InstallationMedia: Lubuntu 25.04 "Plucky Puffin" - Release amd64 (20250417)
PackageArchitecture: all
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties-qt/+bug/2109305/+subscriptions
More information about the foundations-bugs
mailing list