canonical/layer-basic

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

Opened this issue · 3 comments

I'm able to reproduce this on a clean Focal VM with:

git clone https://git.launchpad.net/autocert-charm
cd autocert-charm
make clean; charmcraft pack --destructive-mode

A workaround I have in place is wheelhouse.txt:

# Focal failures - https://github.com/juju-solutions/layer-basic/issues/210
Jinja2<3.0;python_version == '3.8' # Just for python 3.8

Also, we're seeing this:

2022-10-19 01:16:12 WARNING unit.autocert-test/0.upgrade-charm logger.go:60       AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'

With full logs - https://paste.ubuntu.com/p/xRPyPH39Nf/

It looks like we'll need to pin setuptools and setuptools-scm

PR - #211