-
Notifications
You must be signed in to change notification settings - Fork 571
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
[BUG] module 'jinja2.utils' has no attribute 'escape' #1736
Comments
nbconvert/nbconvert/filters/ansi.py Lines 50 to 61 in 1211cb2
This needs to be changed to use |
yes its this code, so actually it is coming from |
can you fix it, or should I make a PR? You would have to release it then ideally soon :) |
I am not a maintainer of this package. |
* module 'jinja2.utils' has no attribute 'escape' sphinx-doc/sphinx#10289 * [BUG] module 'jinja2.utils' has no attribute 'escape' jupyter/nbconvert#1736
We're also seeing this, not sure if it's related but I'm chalking it up to the new jinja2 3.1.0 release:
|
Fixed by setting upper limit on jinja2 dependency
The removal of jinja2.utils.escape in Jinja2 v3.1.0 breaks nbconvert, which was relying on this deprecated function. For more details, see issue here: jupyter/nbconvert#1736
cc @MSeal @davidbrochart FYI |
Lines 12 to 14 in 1211cb2
If nbconvert adds |
* Add Huber function norm * Add bisection vector root finder * Improve error handling and tests * Improvements * Add golden section minimizer * Docs correction * Minor edits * Add set distance functional * Add squared set distance functional * Clean up set distance tests * Clean up functional tests * Temporary fix for jinja2/nbconvert bug jupyter/nbconvert#1736 * Update change summary * Address codefactor complaints * Rename test file
* module 'jinja2.utils' has no attribute 'escape' sphinx-doc/sphinx#10289 * [BUG] module 'jinja2.utils' has no attribute 'escape' jupyter/nbconvert#1736
This is a WAR to incompatibility issue between nbconvert latest Jinja2, see jupyter/nbconvert#1736
The latest version of Jinja changed the import for `Markup`. The import was fixed in the latest version of `nbconvert`: jupyter/nbconvert#1736 We include the version of `nbconvert` from the DLVM base image which is released every ~2 weeks. However, the `nbconvert` fix was released only 6 hours ago. Temporarily install thel latest version of `nbconvert`. Add a test to prevent regression. http://b/227194111
The latest version of Jinja changed the import for `Markup`. The import was fixed in the latest version of `nbconvert`: jupyter/nbconvert#1736 We include the version of `nbconvert` from the DLVM base image which is released every ~2 weeks. However, the `nbconvert` fix was released only 6 hours ago. Temporarily install thel latest version of `nbconvert`. Add a test to prevent regression. http://b/227194111
Workaround until jupyter/nbconvert#1736 is fixed.
Today released
jinja2
version has deprecatedjinja2.utils.escape
.See here: pallets/jinja#1626
Not directly, it raises on
readthedocs
when building docs from notebooks:https://readthedocs.org/projects/sktime/builds/16457301/
Nbconvert version:
latest
The text was updated successfully, but these errors were encountered: