qt DialogMirror.py argument 1 has unexpected type 'float' while selecting best mirror
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
While selecting the best mirror in software-
Traceback (most recent call last):
File "/usr/lib/
self.
TypeError: setValue(self, progress: int): argument 1 has unexpected type 'float'
I didn't investigate thoroughly, but it looks like maybe someone updated how progress was being updated but didn't check types or test all the way through before releasing. It can be fixed with a simple patch:
diff --git a/softwareprope
index 972c4fb..4d1c150 100644
--- a/softwareprope
+++ b/softwareprope
@@ -223,7 +223,7 @@ class DialogMirror(
def on_report_
# (current + mod[0], max + mod[1]))
- frac = borders[0] + (borders[1] - borders[0]) / max * current
+ frac = int(borders[0] + (borders[1] - borders[0]) / max * current)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
$ apt-cache policy pkgname software-
software-
Installed: 0.99.39
Candidate: 0.99.39
Version table:
*** 0.99.39 500
500 https:/
100 /var/lib/
N: Unable to locate package pkgname
The attachment "patch to cast float to int for progress dialog" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]