-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Add proper jinja2 error #35533
Add proper jinja2 error #35533
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
failing test is unrelated, pinging @ArthurZucker for core maintainer review! |
cc70a02
to
fc6aba8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
(should we add jinja2 to some of the extras? I'm sure it gets installed with pip install transformers[all]
)
It's a dependency of |
* Cleanup jinja2 imports * Raise a proper error if Jinja is missing * make fixup
* Cleanup jinja2 imports * Raise a proper error if Jinja is missing * make fixup
Several users reported confusion in #34397 when
jinja2
is not installed, because the code imports some submodules ofjinja2
, and the error message when these submodules is undefined doesn't referencejinja2
at all.This PR adds a proper error so people know what's going on!