Cant build charm with charmhelpers - missing markupsafe
Metadata
Current evaluation
Charmhelpers-based charm build failed with missing markupsafe via Jinja2/setuptools 58+ vs Tempita 2to3 conflict. cmatsuoka diagnosed it and the reporter confirmed the workaround works; maintainer closed the issue as solved without a charmcraft code change.
Resolution: closed not a bug
Reason: cmatsuoka explained the failure is a dependency-version conflict (jinja2 needs setuptools >58 while Tempita, via charmhelpers, breaks on setuptools 58+ due to dropped 2to3) rather than a charmcraft defect, and closed on 2022-01-27 once the reporter confirmed adding `charm-python-packages: [setuptools < 58]` to charmcraft.yaml fixed the build. No fix PR was merged; the pre-existing `charm-python-packages` property from PR #553 (ccec8b7e) is the intended escape hatch.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Charmhelpers-based charm build failed with missing markupsafe via Jinja2/setuptools 58+ vs Tempita 2to3 conflict. cmatsuoka diagnosed it and the reporter confirmed the workaround works; maintainer closed the issue as solved without a charmcraft code change. | |
| stealth/space-bunny-alpha | — | closed not a bug | Charmcraft 1.4.0 build failed with missing markupsafe when charmhelpers pulled in jinja2/tempita. Maintainer traced it to a dependency conflict, not a charmcraft bug; pinning `charm-python-packages: [setuptools < 58]` in charmcraft.yaml fixed the reporter's build and the issue was closed. | |
| stealth/space-bunny-alpha | — | closed resolved | Resolved by pinning setuptools below 58 in charmcraft.yaml: charm-python-packages: [setuptools < 58]. The reporter confirmed the workaround fixed the missing-markupsafe build failure. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Charm build failed due to a setuptools version conflict between Jinja2 and Tempita. Resolved by adding charm-python-packages: [setuptools < 58] to charmcraft.yaml. Issue closed as resolved. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved via charmcraft.yaml workaround. Adding charm-python-packages: [setuptools < 58] fixed a Jinja2 and Tempita dependency conflict. The issue was closed after the user confirmed the build succeeded. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed after confirming a workaround. Charm builds failed due to a setuptools version conflict between Jinja2 and Tempita. Adding charm-python-packages: [setuptools < 58] to charmcraft.yaml resolved the dependency issue. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#553
(confidence 88%)
PR #553 (commit ccec8b7e / 4b2d291b) added the charm-python-packages property that cmatsuoka recommended as the fix path, per related issue #551.
-
Duplicate Of:
canonical/charmcraft#639
(confidence 78%)
Same Jinja2/setuptools-driven build failure, closed with the same `charm-python-packages: [setuptools < 58]` config workaround.
-
Related To:
canonical/charmcraft#551
(confidence 72%)
Original issue where charm-python-packages was added to restore Jinja2 packing in charmcraft 1.3.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #639 Can't build charm: Failed to build charm for bases index '0' | charmcraft | closed | Closed as a dependency/configuration issue: adding setuptools fixed Jinja2 packing, while Tempita required setuptools <58. A later build recovered after charmcraft clean. | |
| #904 Can't build/pack a charm with Focal | charmcraft | closed | Closed as an upstream charm-tools bug; the missing MarkupSafe failure was tracked in juju/charm-tools#646. | |
| #551 [charmcraft 1.3]: Cannot pack a charm with Jinja2 as dependency | charmcraft | closed | Jinja2 pack failure in charmcraft 1.3 was traced to old setuptools in the build venv. Resolved by merged PR #553 (ccec8b7e, commit 4b2d291b) adding a charm-python-packages charm plugin property, letting charms preinstall setuptools. | |
| #792 22.10 - Failed to build charm for bases index '0'. | charmcraft | closed | Reporter's reactive charm failed to build; maintainer facundobatista closed it as not a Charmcraft bug — the legacy `charm` tool rejects metadata.yaml without a `series` list. Author agreed and took it to the Juju team. |