lavr / python-emails

Modern python library for emails
http://python-emails.readthedocs.org
Other
405 stars 54 forks source link

missing jinja2 dependency #161

Open weakcamel opened 2 years ago

weakcamel commented 2 years ago

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.