File "/Users/foouser/git/myproject/.venv/lib/python3.9/site-packages/emails/template/jinja_template.py", line 21, in __init__
globals()['jinja2'] = __import__('jinja2')
That's because python-emails doesn't list jinja2 as a dependency in setup.py, neither as mandatory nor optional.
You need to install jinja2 separately to avoid the problem.
When using T (Jinja templates) which is pretty much the first example on https://python-emails.readthedocs.io/en/latest/ you will get the following error:
That's because python-emails doesn't list
jinja2
as a dependency in setup.py, neither as mandatory nor optional.You need to install jinja2 separately to avoid the problem.