[Bug 1876068] Re: DeprecationWarning: an integer is required
Benjamin Drung
1876068 at bugs.launchpad.net
Thu Mar 30 10:15:58 UTC 2023
This DeprecationWarning warning was fixed by
https://github.com/canonical/apport/commit/57c674a6d906a6e66a5c795aa45710cd2844d24d
which is part of Apport 2.21.0.
While looking at this commit, I noticed that this fix is broken. The
float value is between 0 and 1. Converting it to integer before
multiplying it results in a progress bar that is always 0% or 100%.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1876068
Title:
DeprecationWarning: an integer is required
Status in apport package in Ubuntu:
Fix Released
Bug description:
Hi,
when I use ubuntu-bug to report a bug, I see the following python
deprecation warning:
$ ubuntu-bug apport-kde
/usr/share/apport/apport-kde:129: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
progress.setValue(value * 1000)
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: apport-kde 2.20.11-0ubuntu27
Uname: Linux 5.6.7-050607-generic x86_64
ApportLog:
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Thu Apr 30 11:16:12 2020
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1876068/+subscriptions
More information about the foundations-bugs
mailing list