Downloading packages fails with an unhandled OverflowError

Bug #377375 reported by Paul van Genderen
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
the python apt bindings
Invalid
Undecided
Unassigned
python-apt (Debian)
Fix Committed
Undecided
Unassigned
python-apt (Ubuntu)
Fix Released
Undecided
Paul van Genderen

Bug Description

Binary package hint: python-apt

This happens at some point while a package is being downloaded:

Traceback (most recent call last):

File "/tmp/tmp-HYeii/DistUpgradeViewText.py", line 60, in pulse
apt.progress.TextFetchProgress.pulse(self)

File "/usr/lib/python2.5/site-packages/apt/progress.py", line 111, in pulse
apt_pkg.TimeToStr(int(self.eta)))

OverflowError: long int too large to convert to int

More information soonish.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: python-apt 0.7.7.1ubuntu4
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=C
 SHELL=/bin/bash
SourcePackage: python-apt
Uname: Linux 2.6.27-11-generic i686

Revision history for this message
Paul van Genderen (paulvg) wrote :
Revision history for this message
Paul van Genderen (paulvg) wrote :
Revision history for this message
Paul van Genderen (paulvg) wrote :
Revision history for this message
Paul van Genderen (paulvg) wrote :

I wrote a debdiff that could fix this. Am I doing it right?
I'm still testing this, but so far, so good.

Revision history for this message
Paul van Genderen (paulvg) wrote :

I wrote a debdiff that could fix this. Am I doing it right?
I'm still testing this, but so far, so good.

Revision history for this message
Paul van Genderen (paulvg) wrote :

Whoops, sorry for the double post. Python-apt is not the only program that b0rks with a bad Internet link ;)

Revision history for this message
Julian Andres Klode (juliank) wrote :

A fix has been committed to the debian-experimental branch. It can be seen at:

http://bzr.debian.org<email address hidden>

------------------------------------------------------------
revno: 512
revision-id: <email address hidden>
parent: <email address hidden>
fixes bug(s): https://launchpad.net/bugs/377375
committer: Julian Andres Klode <email address hidden>
branch nick: debian-experimental
timestamp: Mon 2011-04-11 11:54:15 +0200
message:
  apt.progress: Use long for ETA, natural type for size (LP: #377375)

Changed in python-apt (Ubuntu):
status: New → Fix Committed
Changed in python-apt:
status: New → Fix Committed
Changed in python-apt (Ubuntu):
status: Fix Committed → In Progress
Changed in python-apt:
status: Fix Committed → Invalid
Changed in python-apt (Debian):
status: New → Fix Committed
Revision history for this message
Julian Andres Klode (juliank) wrote :

Really, don't play with the way I'm tracking bugs. We have committed it to one repository, so it's committed. In progress is for bugs in which we're looking for a solution.

Changed in python-apt (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Julian Andres Klode (juliank) wrote :

And could someone unsubscribe the reviewers team? We do not need it.

Revision history for this message
Paul van Genderen (paulvg) wrote :

Thanks a million for the patch(!), I just wanted to reflect the fact that the fix was committed to Debian, not Ubuntu. You aren't subscribed to this bug, but maybe if I assign it to myself it'll stop bugging you ;)

Changed in python-apt (Ubuntu):
assignee: nobody → Paul van Genderen (paulvg)
Revision history for this message
Julian Andres Klode (juliank) wrote :

I am subscribed to all python-apt bugs. Our work flow at the moment is something like:

    debian-experimental bzr => ubuntu bzr => Ubuntu release => Debian release

We're queuing changes in debian-experimental, as we want to keep the changes small for Beta 2.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-apt - 0.8.0~exp4ubuntu1

---------------
python-apt (0.8.0~exp4ubuntu1) oneiric; urgency=low

  * Merged from debian/experimental, remaining changes:
    - updated mirror list
    - do not disable 0.7 compat API yet

python-apt (0.8.0~exp4) experimental; urgency=low

  * apt_pkg: Add OrderList, wanted for mancoosi (Closes: #623485)
  * apt_pkg: Add subclassing fun to PackageManager, for #623485 as well
  * apt.cache: Emit change signals in ProblemResolver
  * apt.Cache: Add a _changes_count member for later use

python-apt (0.8.0~exp3) experimental; urgency=low

  [ Stéphane Graber ]
  * Update enable_component to also apply to -src entries (LP: #758732)

  [ Julian Andres Klode ]
  * apt_pkg: Add apt_pkg.Version.multi_arch and friends

python-apt (0.8.0~exp2) experimental; urgency=low

  * aptsources: Parse multi-arch sources.list files correctly
  * aptsources: Allow insertion of new multi-arch entries
  * aptsources: Various cleanup work
  * all: Fix all instances of ResourceWarning about unclosed files
  * tests/test_apt_cache.py: Use assertTrue() instead of assert_()
  * apt_pkg: Raise error when parse_commandline gets empty argv (LP: #707416)
  * apt_pkg: Fix time_to_str, time_rfc1123 to accept more correct values
    (time_to_str accepts unsigned long, time_rfc1123 long long, y2k31-correct).
  * apt.progress: Use long for ETA, natural type for size (LP: #377375)
  * aptsources/sourceslist.py: s/aptsource.py/sourceslist.py/ (LP: #309603)
  * doc/examples: Add example on how to get architecture names (LP: #194374)
  * apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820)
  * apt.cache: Document that update() may need an open() (Closes: #622342)
  * apt.cache: Add a fetch_archives() method (Closes: #622347)
  * doc: Fix a minor formatting error, patch by Jakub Wilk (Closes: #608914)
  * apt.package: Add 'tasks' to Version, improve doc (Closes: #619574)
  * doc: Fix documentation of BaseDependency.relation (Closes: #607031)

python-apt (0.8.0~exp1) experimental; urgency=low

  * Disable the old-style API, and break all packages using it
  * Add an 'is_multi_arch' attribute to apt_pkg.Cache
  * Add apt_pkg.Group class, wrapping pkgCache::GrpIterator
  * Change apt_pkg.Cache() so that passing None for 'progress' results in
    no progress output
  * Support (name, arch) tuples in apt_pkg.Cache mappings, wrapping
    FindPkg() with two string parameters.
  * Introduce apt_pkg.Cache.groups and apt_pkg.Cache.group_count
  * Fix debian/rules to work correctly with tilde in version number
 -- Michael Vogt <email address hidden> Tue, 24 May 2011 10:08:56 +0200

Changed in python-apt (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.