charmcraft won't build 18.04 bionic charm for local-users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-local-users |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There's an incompatibility in the build pipeline for bionic when performing a `charmcraft pack` on the main branch.
jinja2 < 3.0 in the requirements.txt pulls in MarkupSafe>=0.23 which results in MarkupSafe==2.0.1 currently. This causes the build to fail with an error that there's no module markupsafe found.
When adding MarkupSafe < 2.0 (resulting in MarkupSafe == 1.1.1) into the requirements.txt, the build error for bionic changes to an issue of the setuptools/setup.py within the venv having an error that it cannot find `find_dependenc
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.135 :: 2022-03-14 17:00:33.135 :: Complete output from command python setup.py egg_info:
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.135 :: 2022-03-14 17:00:33.135 :: running egg_info
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.135 :: 2022-03-14 17:00:33.135 :: creating pip-egg-
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.135 :: 2022-03-14 17:00:33.135 :: writing pip-egg-
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.136 :: 2022-03-14 17:00:33.135 :: writing dependency_links to pip-egg-
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.136 :: 2022-03-14 17:00:33.135 :: writing requirements to pip-egg-
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.136 :: 2022-03-14 17:00:33.135 :: writing top-level names to pip-egg-
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.136 :: 2022-03-14 17:00:33.136 :: writing manifest file 'pip-egg-
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.136 :: 2022-03-14 17:00:33.136 :: error: package directory 'find_namespace:' does not exist
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.136 :: 2022-03-14 17:00:33.136 ::
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.173 :: 2022-03-14 17:00:33.136 :: -------
2022-03-14 12:00:33.587 :: 2022-03-14 17:00:33.206 :: 2022-03-14 17:00:33.173 :: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-
Related branches
- Xav Paice (community): Approve
- Garrett Neugent (community): Approve
- BootStack Reviewers: Pending requested
-
Diff: 11 lines (+3/-0)1 file modifiedcharmcraft.yaml (+3/-0)
Changed in charm-local-users: | |
status: | New → Fix Released |
Ultimately, there's a charmcraft bug for this which affects all charmhelpers charms.
https:/ /github. com/canonical/ charmcraft/ issues/ 632#issuecommen t-1019342531
Workaround by adding this to charmcraft.yaml:
parts: python- packages: [setuptools < 58]
charm:
charm-