Skip to content

missing jinja2 dependency #161

@weakcamel

Description

@weakcamel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions