-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency conflict with Sceptre v2.7.1 and Jinja2 v2.11.3 #1201
Comments
This is related the jinja2 issue pallets/jinja#1587 |
You are using an unsupported version of Jinja, please update to the latest version. Additionally, please read https://hynek.me/articles/semver-will-not-save-you/, then use a tool like pip-tools to pin your dependencies and control when you get updates. Be sure to run your tests with deprecation warnings treated as errors so that you get notified of these types of changes early. |
A working work-around is to fix the MarkupSafe version to |
@jlehtiniemi you have suggested that this be fixed within Sceptre. What are you suggesting we would do? Upgrade Jinja? Or require MarkupSafe<2.1? |
@jfalkenstein Upgrading Sceptre's Jinja2 dependency to a supported version as @davidism suggested would be the obvious solution. Updated my post above, as it may have been a bit unclear regarding this. |
the markupsafe change breaks all sorts of tools that depend on jinja2 ver 2.x, pallets/markupsafe#284 I first noticed it in my pre-commit plugin that also depends on jinja2 ver 2.x. I tried the workaround of setting markupsafe==2.0.1 however that didn't fix the issue for me. I think the only viable option is to update sceptre's Jinja2 version to 3.x |
A change to MarkUpSafe caused Sceptre to stop working. This is due to Sceptre's dependency on Jinja2 ver 2.x. The recommeneded solution to resolve the conflict is to update Jinja2 to ver 3.x. Updating Jinja2 also required updating moto and some tests
For the record, this markupsafe thing also caused me some problems with SAM CLI. Seems like it's hitting a bunch of places. |
Subject of the issue
Jinja2 v2.11.3 causes dependency issue due to deprecation of
soft_unicode
function in latest release of MarkupSafe v2.1.0 (dependency of Jinja2).Your environment
Steps to reproduce
Expected behaviour
Actual behaviour
Sceptre crashes with stacktrace:
Proposed solution
Upgrade Sceptre's Jinja2 dependency to v3.x.x
The text was updated successfully, but these errors were encountered: