Page MenuHomePhabricator

AttributeError: 'Changelog' object has no attribute 'get_version'
Closed, ResolvedPublic

Description

Getting this error when trying to run docker-pkg on a system with package python3-debian version 0.1.38 installed from debian testing.

Looks like the get_version method has recently been removed from the Changelog object: https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/lib/debian/changelog.py

There IS still a get_versions (plural) method.

Event Timeline

Ejegg created this task.Oct 29 2020, 12:37 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 29 2020, 12:37 AM

Change 637082 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[operations/docker-images/docker-pkg@master] Stop using deleted fn Changelog.get_version

https://gerrit.wikimedia.org/r/637082

hashar added a subscriber: hashar.Nov 9 2020, 8:46 PM

Got broken by https://salsa.debian.org/python-debian-team/python-debian/-/commit/da639a2b3dfe0086929d1934d330f34581b3064a which has been released in 0.1.38 . They have renamed Changelog.get_version() to a private Changelog._get_version(). Changelog.version has been a property forever apparently.

Change 637082 merged by jenkins-bot:
[operations/docker-images/docker-pkg@master] Stop using deleted fn Changelog.get_version

https://gerrit.wikimedia.org/r/637082

akosiaris closed this task as Resolved.Nov 9 2020, 11:44 PM
akosiaris claimed this task.
akosiaris added a subscriber: akosiaris.

Change merged, 2.1.0 is up for review at https://gerrit.wikimedia.org/r/c/operations/docker-images/docker-pkg/+/640268, I expect it to be released soon. I 'll resolve this, feel free to reopen though