Recipe builds fail with bzr: ERROR: No module named apt_pkg
Bug #890834 reported by
Scott Ritchie
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpad-buildd |
Fix Released
|
Critical
|
Martin Pool |
Bug Description
As of today, with the new version of the recipe build system that supports {latest-tag}, my builds started failing with the error:
bzr: ERROR: No module named apt_pkg
You may need to install this Python library separately.
Example buildlog here: https:/
This is probably due to a missing python-apt package on the build daemons.
Related branches
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Critical |
affects: | launchpad → launchpad-buildd |
tags: | added: regression |
affects: | bzr-builder → launchpad-buildd |
Changed in launchpad-buildd: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think the dependency really ought to be in bzr-builder as that's most directly calling it.
See also bug 890892 which would have made this easier to understand.
So, really this is a python-debian bug, that it imports apt_pkg unconditionally, while only having a Recommends dependency on it. On the builds, installation of Recommends is turned off. That is still present in lucid, but fixed in oneiric.
It's probably easiest just to work around it by declaring the dependency in either launchpad-buildd or bzr-builder.