** Description changed:

- 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.
+ [Impact]
+ The command fails to run due to an undeclared library dependency 
(python-ubuntutools)
+ 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.
  
- 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'
+ [Test Case]
+ $ sudo sbuild-launchpad-chroot -h
  Traceback (most recent call last):
-   File "<string>", line 1, in <module>
+   File "/usr/bin/sbuild-launchpad-chroot", line 30, in <module>
+     from ubuntutools.misc import host_architecture
  ImportError: No module named ubuntutools.misc
+ ubuntu@dannf-bionic:~$ 
  
+ [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).
  
- 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
+ Note that the ubuntu-dev-tools dependency appears to no longer be
+ necessary with a direct dependency on python[3]-ubuntutools. While I
+ dropped it for the hirsute upload, I left it there for the SRUs, as I
+ could imagine some scenarios in which that could break automation that
+ assumes ubuntu-dev-tools will get installed as a dependency of this
+ package.

** Tags added: block-proposed-focal block-proposed-groovy

-- 
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

Reply via email to