table_styling: "cannot import name 'Markup' from 'jinja2'" "cloud" "theme"
- cloud-sptheme 1.10.1.post20200504175005
- Jinja2 3.1.2
The make
command is failing with:
Could not import extension cloud_sptheme.ext.table_styling (exception: cannot import name 'Markup' from 'jinja2'
According to StackOverflow: ImportError: cannot import name 'Markup' from 'jinja2' there's been a change to jinja2
which requires a change. The new way to do stuff as of version 3.0.1:
from jinja2.utils import markupsafe
markupsafe.Markup()
Markup, escape are now in
jinja2.utils.markupsafe
module.