[Bug 1593869] Re: do-release-upgrade crashed with ValueError in update_interface(): could not convert string to float: '0, 0000'
disasterpiece
1593869 at bugs.launchpad.net
Wed Nov 23 03:01:53 UTC 2016
Same issue on 16.04.
Fixed with:
--- /usr/lib/python3/dist-packages/apt/progress/base.py 2016-09-01 17:34:43.000000000 +0300
+++ /usr/lib/python3/dist-packages/apt/progress/base.py.bak 2016-11-23 05:57:04.766896902 +0300
@@ -212,6 +212,12 @@
"""Fork."""
return os.fork()
+ def __float(self, str):
+ try:
+ return float(str)
+ except:
+ return float(re.sub(',', '.', str))
+
def update_interface(self):
"""Update the interface."""
try:
@@ -252,9 +258,9 @@
self.conffile(match.group(1), match.group(2))
elif status == "pmstatus":
# FIXME: Float comparison
- if float(percent) != self.percent or status_str != self.status:
- self.status_change(pkgname, float(percent), status_str.strip())
- self.percent = float(percent)
+ if self.__float(percent) != self.percent or status_str != self.status:
+ self.status_change(pkgname, self.__float(percent), status_str.strip())
+ self.percent = self.__float(percent)
self.status = status_str.strip()
elif base == "status":
self.dpkg_status_change(pkgname, status)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1593869
Title:
do-release-upgrade crashed with ValueError in update_interface():
could not convert string to float: '0,0000'
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Bug description:
The upgrader froze then closed after a while
ProblemType: Crash
DistroRelease: Ubuntu 16.10
Package: ubuntu-release-upgrader-core 1:16.10.1
ProcVersionSignature: Ubuntu 4.4.0-25.44-generic 4.4.13
Uname: Linux 4.4.0-25-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu4
Architecture: amd64
CrashDB: ubuntu
Date: Fri Jun 17 21:52:44 2016
ExecutablePath: /usr/bin/do-release-upgrade
InstallationDate: Installed on 2016-06-17 (0 days ago)
InstallationMedia: Ubuntu-MATE 16.10 "Yakkety Yak" - Alpha amd64 (20160617)
InterpreterPath: /usr/bin/python3.5
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/do-partial-upgrade --frontend=DistUpgradeViewGtk3
ProcEnviron:
SHELL=/bin/bash
LANG=da_DK.UTF-8
LANGUAGE=da
PATH=(custom, no user)
PythonArgs: ['/usr/bin/do-release-upgrade', '--frontend=DistUpgradeViewGtk3']
SourcePackage: ubuntu-release-upgrader
Title: do-release-upgrade crashed with ValueError in update_interface(): could not convert string to float: '0,0000'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
VarLogDistupgradeTermlog:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1593869/+subscriptions
More information about the foundations-bugs
mailing list