How to Solve NameError: name 'BaseLoader' is not defined -- jinja2

Solution: Import the 'BaseLoader' module

To Solve the error, add the following line to the top of your code.

from jinja2 import BaseLoader

 

For more information:
Python jinja2 BaseLoader