lordmauve / flake8-html

Generate HTML reports of flake8 violations
Other
52 stars 17 forks source link

cannot import name 'Markup' from 'jinja2' #27

Closed iuiu34 closed 2 years ago

iuiu34 commented 2 years ago

With the new release of jinja2, markupsafe has moved from from jinja2 import markupsafe to from jinja2.utils import markupsafe

In particular, running a fresh install of flake8-html throws error cannot import name 'Markup' from 'jinja2'

current solution is install dependencies MarkupSafe==2.0.1, Jinja2==3.0.3.

james-monkeyshines commented 2 years ago

This was fixed in response to issue #23. What is lacking is a version bump that automated builds can detect - I've requested that in a new issue (#28).

lordmauve commented 2 years ago

I have released the new version including the fix for #23