Skip to content

pin jinja

ValueError: The 'ligo.followup_advocate.jinja' package was not installed in a way that PackageLoader understands.

With jinja2 > 3.0 doing the following gives the above error

>>> from ligo import followup_advocate
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/deep/git.ligo.org/forks/ligo-followup-advocate/ligo/followup_advocate/__init__.py", line 19, in <module>
    from .jinja import env
  File "/home/deep/git.ligo.org/forks/ligo-followup-advocate/ligo/followup_advocate/jinja.py", line 14, in <module>
    loader=jinja2.PackageLoader(__name__, 'templates'),
  File "/home/deep/miniconda3/envs/followup-advocate/lib/python3.7/site-packages/jinja2/loaders.py", line 310, in __init__
    f"The {package_name!r} package was not installed in a"
ValueError: The 'ligo.followup_advocate.jinja' package was not installed in a way that PackageLoader understands.

the error goes away in version 2.10

Merge request reports

Loading