← Back to issue list

Can't build/pack a charm with Focal

View original Github issue

Metadata

Project
charmcraft
Number
#904
Type
issue
State
closed
Author
hloeung
Labels
—
Created
Updated
Closed

Current evaluation

Closed as an upstream charm-tools bug; the missing MarkupSafe failure was tracked in juju/charm-tools#646.

Resolution: closed not a bug

Reason: The Charmcraft maintainer identified the defect as belonging to charm-tools and directed the report to juju/charm-tools#646. No resolving Charmcraft PR or commit was cited.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Hi, We're now seeing failures building a charm, smtp-relay, with Focal: ``` ubuntu@juju-87625f-hloeung-110:~/smtp-relay-charm$ charmcraft pack Packing the charm Building charm in '/root' | (5.1s) found charm-tools 3.0.4 (+git-0-977ec1f) Running step BUILD for part 'charm' - (3.2s) found charm-tools 3.0.4 (+git-0-977ec1f) Parts processing error: Failed to run the build script for part 'charm'. Failed to build charm for bases index '0'. Full execution log: '/home/ubuntu/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20221012-033541.556209.log' ``` The issue seems to be Jinja2 complaining about missing MarkupSafe per the logs: ``` 2022-10-12 03:32:51.947 :: 2022-10-12 03:32:50.147 :: File "/root/snap/charmcraft/common/pip-download-hxtxgvsx/Jinja2/src/jinja2/__init__.py", line 8, in <module> 2022-10-12 03:32:51.947 :: 2022-10-12 03:32:50.147 :: from .environment import Environment as Environment 2022-10-12 03:32:51.947 :: 2022-10-12 03:32:50.147 :: File "/root/snap/charmcraft/common/pip-download-hxtxgvsx/Jinja2/src/jinja2/environment.py", line 14, in <module> 2022-10-12 03:32:51.947 :: 2022-10-12 03:32:50.147 :: from markupsafe import Markup 2022-10-12 03:32:51.947 :: 2022-10-12 03:32:50.147 :: ModuleNotFoundError: No module named 'markupsafe' ``` See full logs - https://paste.ubuntu.com/p/g69sRfYf8S/

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Closed as an upstream charm-tools bug; the missing MarkupSafe failure was tracked in juju/charm-tools#646.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of upstream juju/charm-tools#646, where the missing MarkupSafe failure was tracked; no Charmcraft fix was cited.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of juju/charm-tools#646, where the Focal charm build's missing MarkupSafe failure was tracked; no Charmcraft fix was cited.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of upstream charm-tools bug juju/charm-tools#646, where the missing MarkupSafe failure was tracked; no Charmcraft fix was cited.
qwen3.6-35b-a3b-mtp-q6 — — Closed as a duplicate. The missing MarkupSafe dependency error was identified as an upstream charm-tools issue tracked in juju/charm-tools#646. Resolution is deferred to that upstream tracker.
qwen/qwen3.6-35b-a3b — — Reported a missing markupsafe dependency error during Focal charm packing. Maintainers identified it as a duplicate of an upstream charm-tools issue (#646) and closed it, deferring resolution to the upstream tracker.
qwen3.6-35b-a3b-mtp-q6 — — The missing MarkupSafe dependency error was identified as a duplicate of an upstream charm-tools issue. The report was closed and superseded by the upstream tracking bug, which handles the underlying dependency resolution.

Update history

No update history recorded yet.

Related work

  • Related To: charm-tools#646 (confidence 99%)

    Upstream charm-tools issue cited by the reporter and maintainer as the source and tracking location.

Related issues

Issue Project State Summary Similarity
#632 Cant build charm with charmhelpers - missing markupsafe charmcraft closed 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.
74%
#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.
72%