sbuild focal python3 import errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sbuild-launchpad-chroot (Ubuntu) |
Fix Released
|
Undecided
|
dann frazier | ||
Bionic |
Fix Released
|
Undecided
|
dann frazier | ||
Focal |
Fix Released
|
Undecided
|
dann frazier | ||
Groovy |
Fix Released
|
Undecided
|
dann frazier | ||
Hirsute |
Fix Released
|
Undecided
|
dann frazier |
Bug Description
[Impact]
The command fails to run due to an undeclared library dependency (python-
While this dependency used to be satisfied transitively through a indirect dependency on ubuntu-dev-tools, ubuntu-dev-tools has since dropped this dependency due to a migration to python3.
This is currently only an issue in bionic because in newer releases s-l-c has been ported to python3, so ubuntu-dev-tools happens to transitively provide the necessary dependency. I therefore consider this a low-impact SRU for focal and groovy.
[Test Case]
$ sudo sbuild-
Traceback (most recent call last):
File "/usr/bin/
from ubuntutools.misc import host_architecture
ImportError: No module named ubuntutools.misc
ubuntu@
[Regression Risk]
Here we are just adding a new/obvious package dependency. The worst regression I can think of is that pulling in the new dependency could result in an out-of-disk scenario. This would almost certainly imply the user was not actually using this package, as any usage of it would certainly require more disk space then the new dependency (Installed-Size: 57.3 kB).
Note that the ubuntu-dev-tools dependency appears to no longer be necessary with a direct dependency on python[
Changed in sbuild-launchpad-chroot (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in sbuild-launchpad-chroot (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in sbuild-launchpad-chroot (Ubuntu Bionic): | |
status: | Confirmed → Triaged |
tags: | added: server-next |
Changed in sbuild-launchpad-chroot (Ubuntu Bionic): | |
assignee: | nobody → dann frazier (dannf) |
status: | Triaged → In Progress |
description: | updated |
tags: | added: block-proposed-focal block-proposed-groovy |
Hi,
I think this is now fixed in Focal, but still an issue on Bionic.
sbuild- launchpad- chroot doesn't declare an explicit dependency on python-ubuntutools (or python3- ubuntutools) : it depends on ubuntu-dev-tools and relies on it to pull in the ubuntutools dependency.
However ubuntu-dev-tools from bionic-updates switched to python3, and stopped pulling it python-ubuntutools, leaving sbuild- launchpad- chroot broken.
I think sbuild- launchpad- chroot should declare an explicit dependency on python/ python3- ubuntutools across all the releases.
Paride