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
The generator.py script is broken due to a new release of MarkupSafe that no longer defines soft_unicode.
python3 scripts/generator.py
Traceback (most recent call last):
File "/opt/ecs/scripts/generator.py", line 7, in <module>
from generators import asciidoc_fields
File "/opt/ecs/scripts/generators/asciidoc_fields.py", line 4, in <module>
import jinja2
File "/usr/local/lib/python3.11/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/usr/local/lib/python3.11/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.11/site-packages/markupsafe/__init__.py)
Description of the issue:
The generator.py script is broken due to a new release of MarkupSafe that no longer defines
soft_unicode
.Any additional context or examples:
Found a similar issue here that eventually opted to pin
MarkupSafe==2.0.1
to fix this.The text was updated successfully, but these errors were encountered: