Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add proper jinja2 error #35533

wants to merge 3 commits into from

Conversation

Rocketknight1
Copy link
Member

@Rocketknight1 Rocketknight1 commented Jan 6, 2025

Several users reported confusion in #34397 when jinja2 is not installed, because the code imports some submodules of jinja2, and the error message when these submodules is undefined doesn't reference jinja2 at all.

This PR adds a proper error so people know what's going on!

@Rocketknight1 Rocketknight1 changed the title Cleanup jinja2 imports Add proper jinja2 error Jan 6, 2025
@HuggingFaceDocBuilderDev

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.

@Rocketknight1
Copy link
Member Author

failing test is unrelated, pinging @ArthurZucker for core maintainer review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants