You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While starting gutenberg2zim on my Mac for the first time in a fresh venv, I got the following error :
Traceback (most recent call last):
File "/Users/benoit/Repos/gutenberg/gutenberg2zim", line 16, in <module>
from gutenbergtozim.download import download_all_books
File "/Users/benoit/Repos/gutenberg/gutenbergtozim/download.py", line 19, in <module>
from gutenbergtozim.export import get_list_of_filtered_books, fname_for
File "/Users/benoit/Repos/gutenberg/gutenbergtozim/export.py", line 18, in <module>
from jinja2 import Environment, PackageLoader
File "/Users/benoit/Repos/gutenberg/.venv/lib/python3.9/site-packages/jinja2/__init__.py", line 33, in <module>
from jinja2.environment import Environment, Template
File "/Users/benoit/Repos/gutenberg/.venv/lib/python3.9/site-packages/jinja2/environment.py", line 15, in <module>
from jinja2 import nodes
File "/Users/benoit/Repos/gutenberg/.venv/lib/python3.9/site-packages/jinja2/nodes.py", line 19, in <module>
from jinja2.utils import Markup
File "/Users/benoit/Repos/gutenberg/.venv/lib/python3.9/site-packages/jinja2/utils.py", line 624, in <module>
from markupsafe import Markup, escape, soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Users/benoit/Repos/gutenberg/.venv/lib/python3.9/site-packages/markupsafe/__init__.py)
Searching the Internet indicates that downgrading markupsage to 2.0.1 solves the issue
pip install markupsafe==2.0.1
I confirm it solves the issue on my side. Probably linked to the fact that Jinja2 version is pretty old (2017).
Some details :
Python 3.9.12
pip 22.3.1
MacOS Monterey 12.6
The text was updated successfully, but these errors were encountered:
While starting gutenberg2zim on my Mac for the first time in a fresh venv, I got the following error :
Searching the Internet indicates that downgrading markupsage to 2.0.1 solves the issue
I confirm it solves the issue on my side. Probably linked to the fact that Jinja2 version is pretty old (2017).
Some details :
The text was updated successfully, but these errors were encountered: