[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728572: python-apt: string to float conversion exception



I upgraded to 0.9.12.1 on 16th October (from logs). That means I'm reproducing this issue with 0.9.12.1.


On Sun, Nov 3, 2013 at 12:20 PM, Julian Andres Klode <jak@debian.org> wrote:
On Sun, Nov 03, 2013 at 10:09:06AM +0200, Pauli wrote:
> Package: python-apt
> Version: 2:0.9.1
> Severity: normal
>
> Dear Maintainer,
>
> I noticed that unattended-upgrade seem to fail randomly with string to
> float conversion exception. I made some modifications to
> unattended-upgrade to print the exception stack trace which points
> python-apt status update parsing code.
>
> Exception happened during upgrade.
> Traceback (most recent call last):
>   File "/usr/bin/unattended-upgrade", line 382, in upgrade_in_minimal_steps
>     res  cache.commit(install_progressiprogress)
>   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 498, in commit
>     res  self.install_archives(pm, install_progress)
>   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 462, in install_archives
>     res  install_progress.run(pm)
>   File "/usr/lib/python2.7/dist-packages/apt/progress/base.py", line 206, in run
>     res  self.wait_child()
>   File "/usr/lib/python2.7/dist-packages/apt/progress/base.py", line 276, in wait_child
>     self.update_interface()
>   File "/usr/bin/unattended-upgrade", line 172, in update_interface
>     apt.progress.base.InstallProgress.update_interface(self)
>   File "/usr/lib/python2.7/dist-packages/apt/progress/base.py", line 253, in update_interface
>     if float(percent) ! self.percent or status_str ! self.status:
> ValueError: could not convert string to float: amd64

You ran that upgrade with APT 0.9.12, right? This was fixed in 0.9.12.1, so
you cannot reproduce it anymore...

--
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Please do not top-post if possible.


Reply to: