Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja2 2.11.x #60

Closed
horjulf opened this issue Jan 28, 2020 · 1 comment
Closed

Jinja2 2.11.x #60

horjulf opened this issue Jan 28, 2020 · 1 comment

Comments

@horjulf
Copy link

horjulf commented Jan 28, 2020

File ".../.pyenv/versions/3.7.4/lib/python3.7/site-packages/yasha/cli.py", line 103, in load_extensions
    if name in jinja2.defaults.__all__:
AttributeError: module 'jinja2.defaults' has no attribute '__all__'

Breaking change introduced at:
pallets/jinja@9849979#diff-761eb6a6cd7e48fb3546cf11b693b8f1

@dafanasiev
Copy link

@horjulf try replace:

 if name in jinja2.defaults.__all__:

to

if name in tuple (x for x in dir(jinja2.defaults) if x.isupper()):

in cli.py

alextremblay pushed a commit to alextremblay/yasha that referenced this issue Aug 10, 2020
alextremblay pushed a commit to alextremblay/yasha that referenced this issue Aug 17, 2020
alextremblay pushed a commit to alextremblay/yasha that referenced this issue Aug 25, 2020
elgalu pushed a commit to elgalu/yasha that referenced this issue Jan 24, 2021
elgalu added a commit to elgalu/yasha that referenced this issue Jan 24, 2021
elgalu added a commit to elgalu/yasha that referenced this issue Jan 24, 2021
@kblomqvist kblomqvist modified the milestone: 5.0 Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants