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

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Superseded by upstream juju/charm-tools#646. The packaging failure results from a missing MarkupSafe dependency in charm-tools, not charmcraft. Tracked externally.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#640 Unable to build charm due to "no such file or directory" charmcraft closed Closed as not reproducible. Maintainers could not replicate the charmcraft packaging failure involving a missing .tox log file. The reporter resolved it locally by adding the directory to .jujuignore, but no root cause was identified or patched.
70%
#632 Cant build charm with charmhelpers - missing markupsafe charmcraft closed 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.
70%