Public bug reported: In trying to sbuild from a changes file on Focal, I believe I'm hitting an import error due to only having python3 modules for ubuntutool.misc on Focal.
csmith@downtown:/tmp/cloud-init (ubuntu/devel)$ python3 -c 'from ubuntutools.misc import host_architecture' csmith@downtown:/tmp/cloud-init (ubuntu/devel)$ python -c 'from ubuntutools.misc import host_architecture' Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named ubuntutools.misc Shall we look at making sbuild python3 compatible? there are no python 2 packages for ubuntutools: $ rmadison python-ubuntutools python-ubuntutools | 0.155 | xenial/universe | all python-ubuntutools | 0.155ubuntu2 | xenial-updates/universe | all python-ubuntutools | 0.164 | bionic/universe | all python-ubuntutools | 0.166 | disco/universe | all python-ubuntutools | 0.173ubuntu1 | eoan/universe | all $ rmadison python3-ubuntutools python3-ubuntutools | 0.155 | xenial/universe | all python3-ubuntutools | 0.155ubuntu2 | xenial-updates/universe | all python3-ubuntutools | 0.164 | bionic/universe | all python3-ubuntutools | 0.166 | disco/universe | all python3-ubuntutools | 0.173ubuntu1 | eoan/universe | all python3-ubuntutools | 0.174 | focal/universe | all Only the attached patch was needed to get my sbuild working on focal: https://paste.ubuntu.com/p/r2tsbjGvhp/ Without the patch for python3, I hit the following errors: sbuild --dist=focal --arch=amd64 --arch-all ../out/cloud-init_19.3-23-gfb04493e-0ubuntu1.dsc sbuild (Debian sbuild) 0.78.1 (09 February 2019) on downtown +===============================================================================+ | cloud-init 19.3-23-gfb04493e-0ubuntu1 (amd64) Fri, 15 Nov 2019 02:24:12 +0000 | +===============================================================================+ Package: cloud-init Version: 19.3-23-gfb04493e-0ubuntu1 Source Version: 19.3-23-gfb04493e-0ubuntu1 Distribution: focal Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 Build Type: binary E: 01launchpad-chroot: Traceback (most recent call last): E: 01launchpad-chroot: File "/usr/bin/sbuild-launchpad-chroot", line 30, in <module> E: 01launchpad-chroot: from ubuntutools.misc import host_architecture E: 01launchpad-chroot: ImportError: No module named ubuntutools.misc E: focal-amd64-1e51f940-8953-4055-a767-0c10542fac19: Chroot setup failed: stage=setup-start Chroot setup failed E: Error creating chroot session: skipping cloud-init +------------------------------------------------------------------------------+ | Summary | +------------------------------------------------------------------------------+ Build Architecture: amd64 Build Type: binary Build-Space: 0 Build-Time: 0 Distribution: focal Fail-Stage: create-session Host Architecture: amd64 Install-Time: 0 Job: ../out/cloud-init_19.3-23-gfb04493e-0ubuntu1.dsc Machine Architecture: amd64 Package: cloud-init Package-Time: 0 Source-Version: 19.3-23-gfb04493e-0ubuntu1 Space: 0 Status: failed Version: 19.3-23-gfb04493e-0ubuntu1 -------------------------------------------------------------------------------- Finished at 2019-11-15T02:24:12Z Build needed 00:00:00, 0k disk space E: Error creating chroot session: skipping cloud-init ** Affects: sbuild-launchpad-chroot (Ubuntu) Importance: Undecided Status: New ** Attachment added: "sbuild-lp-chroot.patch" https://bugs.launchpad.net/bugs/1852677/+attachment/5305500/+files/sbuild-lp-chroot.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852677 Title: sbuild focal python3 import errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sbuild-launchpad-chroot/+bug/1852677/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs