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

AttributeError: module 'jinja2.ext' has no attribute 'with_' #147

Open
toasti2000 opened this issue Oct 21, 2022 · 3 comments
Open

AttributeError: module 'jinja2.ext' has no attribute 'with_' #147

toasti2000 opened this issue Oct 21, 2022 · 3 comments

Comments

@toasti2000
Copy link

Hello,

I did a fresh installation on a PopOS, following the documentation and get this error when I execute "prosopopee":

Traceback (most recent call last): File "/home/basti/ve/bin/prosopopee", line 8, in <module> sys.exit(main()) File "/home/basti/ve/lib/python3.10/site-packages/prosopopee/prosopopee.py", line 842, in main templates.add_extension("jinja2.ext.with_") File "/home/basti/ve/lib/python3.10/site-packages/jinja2/environment.py", line 373, in add_extension self.extensions.update(load_extensions(self, [extension])) File "/home/basti/ve/lib/python3.10/site-packages/jinja2/environment.py", line 117, in load_extensions extension = t.cast(t.Type["Extension"], import_string(extension)) File "/home/basti/ve/lib/python3.10/site-packages/jinja2/utils.py", line 149, in import_string return getattr(__import__(module, None, None, [obj]), obj) AttributeError: module 'jinja2.ext' has no attribute 'with_'

What can I do?

Many thanks in advance!

@QSchulz
Copy link
Contributor

QSchulz commented Oct 21, 2022

Downgrade to a version of Jinja before 3.1, or patch prosopopee the same way it was done here: recitale/recitale@5f7fb06

@toasti2000
Copy link
Author

toasti2000 commented Oct 21, 2022

Perfect, many thanks! This worked perfectly!

Any advantages of recitale that Prosopopee not have?

@QSchulz
Copy link
Contributor

QSchulz commented Oct 21, 2022

Mainly highly parallelized build (c.f. #137) and a bit more user-friendly in terms of progress bars during build. Otherwise, not much. I just grew tired of the build times on my slow PCs/servers and this fork using Pillow is much faster (and it was fun (sometimes) to learn more about Python).

This was referenced Jun 15, 2024
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

2 participants