Version.sha256 throws SystemError

Bug #1833415 reported by Gerard Weatherby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
In Progress
Low
Julian Andres Klode

Bug Description

Attempting to access the property raised the exception 'SystemError: error return without exception set'
The error occurs when version._records.hashes.file_size == 0.
The package occurred on (cups=2.2.7-1ubuntu2.5) on an Ubnuntu 18.04.2 LTS system ; attempting to download the source *deb file failed.

Doing an apt-get clean / apt-get update / apt upgrade seemed to make the problem go away.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3-apt 1.6.4
ProcVersionSignature: Ubuntu 4.15.0-43.46-generic 4.15.18
Uname: Linux 4.15.0-43-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Jun 19 08:20:32 2019
InstallationDate: Installed on 2019-06-05 (13 days ago)
InstallationMedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-apt
UpgradeStatus: No upgrade log present (probably fresh install)

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

OK, so that's a minor issue, yes, it should be raising a nicer error message "No MD5 exists"; but it's really only cosmetic.

Changed in python-apt (Ubuntu):
status: New → In Progress
assignee: nobody → Julian Andres Klode (juliank)
importance: Undecided → Low
Revision history for this message
Julian Andres Klode (juliank) wrote :

In any case, those fields go away today, so the problem will be fixed as well :) - hashes must be used instead, those fields have been deprecated for quite some time already (since 1.1).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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