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
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/push/mailer.py", line 870, in <module>
def safe_markup(raw_html: str) -> jinja2.Markup:
AttributeError: module 'jinja2' has no attribute 'Markup'
Error: The process '/Users/runner/work/element-android/element-android/synapse/env/bin/python3' failed with exit code 1
Steps to reproduce
/bin/mkdir -p synapse
/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python -m venv env
/Users/runner/work/element-android/element-android/synapse/env/bin/pip install -q --upgrade pip
/Users/runner/work/element-android/element-android/synapse/env/bin/pip install -q --upgrade setuptools
/Users/runner/work/element-android/element-android/synapse/env/bin/pip install -q matrix-synapse
Generating config...
/Users/runner/work/element-android/element-android/synapse/env/bin/python3 -m synapse.app.homeserver --server-name localhost --config-path homeserver.yaml --generate-config --report-stats=no
Traceback (most recent call last):
File "/Users/runner/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/runner/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/app/homeserver.py", line 39, in <module>
from synapse.app import _base
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/app/_base.py", line 59, in <module>
from synapse.events.spamcheck import load_legacy_spam_checkers
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/events/spamcheck.py", line 31, in <module>
from synapse.rest.media.v1._base import FileInfo
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/rest/__init__.py", line 19, in <module>
from synapse.rest.client import (
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/rest/client/account.py", line 42, in <module>
from synapse.push.mailer import Mailer
File "/Users/runner/work/element-android/element-android/synapse/env/lib/python3.8/site-packages/synapse/push/mailer.py", line 870, in <module>
def safe_markup(raw_html: str) -> jinja2.Markup:
AttributeError: module 'jinja2' has no attribute 'Markup'
Error: The process '/Users/runner/work/element-android/element-android/synapse/env/bin/python3' failed with exit code 1
If one is unable to use the patch in #12289 (e.g. to reproduce something based on an old version of Synapse), you can workaround this by using the last release of Jinja2 prior to this change, with e.g. pip install Jinja2==3.0.3 in the appropriate Python environment
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Steps to reproduce
Version information
Version:
Latest from pip
Install method:
pip
Platform:
github hosted macos runner
Additional information:
I can replicate locally with the above commands.
https://pypi.org/project/Jinja2/#history released 3.1.0 about 4h ago
The text was updated successfully, but these errors were encountered: