python-emails icon indicating copy to clipboard operation
python-emails copied to clipboard

missing jinja2 dependency

Open weakcamel opened this issue 3 years ago • 0 comments

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:

  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.

weakcamel avatar Feb 16 '22 09:02 weakcamel