Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

snap contains duplicated and mis-matched python library versions in site-packages #1714

Closed
blackboxsw opened this issue Mar 27, 2023 · 0 comments · Fixed by #1719
Closed
Assignees

Comments

@blackboxsw
Copy link

Currently, providing autoinstall user-data in the ubuntu-desktop-installer results in a Traceback in curtin during jsonschema validation.

This Traceback is caused be cause of an incompatibility with cloud-init's jsonschema extended strict schema validation that specifically affects jsonschema 2.6.0.

In debugging this issue on ubuntu-desktop-installer. I noticed various stale and duplicated python library dependencies in ubuntu-desktop-installer snap which are no present in the subiquity snap.

Looking at a file manifest for ubuntu-desktop-installer we can see duplicated and older versions of the following python libraries present in site-packages(site.udi.txt) which also already exist in dist-packages(dist.udi.txt):

  • PyYAML-5.3.1
  • bson
  • certifi
  • charset_normalizer
  • idna
  • jsonschema-2.6.0
  • oauthlib
  • pyrsistent
  • pyudev
  • requests
  • six
  • urllib

The extra libs add to bloat in the snap, version inconsistencies depending on which utilities and environments are invoking them and Tracebacks currently due to some older versions of libraries which cloud-init is incompatible with.

Ideally we can ensure that unnecessary duplicate python libraries are not staged in site-packages if a comparable dist-package is already available.

See some subiquity commits which made these changes:

canonical/subiquity@cada41d
canonical/subiquity@ceff8a6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants