canonical / canonical/layer-basic

Focal issues: "ModuleNotFoundError: No module named 'markupsafe'" and "AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'"

Open
#210 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Hi,

Per https://github.com/juju/charm-tools/issues/647, I'm setting up Launchpad to build one of the charms we manage, autocert. Unfortunately, the Focal builds are all failing with missing MarkupSafe module:

https://launchpad.net/~autocert-charmers/autocert-charm/+charm/autocert/+build/4221/+files/buildlog_charm_ubuntu_focal_amd64_autocert_BUILDING.txt.gz
https://launchpad.net/~autocert-charmers/autocert-charm/+charm/autocert/+build/4223/+files/buildlog_charm_ubuntu_focal_arm64_autocert_BUILDING.txt.gz
https://launchpad.net/~autocert-charmers/autocert-charm/+charm/autocert/+build/4225/+files/buildlog_charm_ubuntu_focal_s390x_autocert_BUILDING.txt.gz
https://launchpad.net/~autocert-charmers/autocert-charm/+charm/autocert/+build/4224/+files/buildlog_charm_ubuntu_focal_ppc64el_autocert_BUILDING.txt.gz

It looks like a compatibility issue between Jinja2 and MarkupSafe. Perhaps we need to pin a specific version of MarkupSafe for Focal with Python 3.8.10?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.