-
Notifications
You must be signed in to change notification settings - Fork 42
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' has no attribute 'Markup' #304
Comments
Can confirm this bug running Debian Buster when upgrading from Synapse 1.51 to 1.55. Backup restore failed as well... |
The jinja2 package had a new release (3.1.0) on Mar 24 which breaks matrix and prevents it from starting. Probably because of the changes to Markup. You can check the changelog here: https://jinja.palletsprojects.com/en/3.1.x/changes/
This also breaks the restoring backup functionality. I had to manually activate the virtualenv by running This will also affect master branch release upgrades if users haven't upgraded before Mar 24. For now maybe specifying the version here for jinja2 could fix the issues for users trying to upgrade in the near future. https://github.com/YunoHost-Apps/synapse_ynh/blob/master/scripts/_common.sh#L51 |
The bug seems to be fixed upstream matrix-org/synapse#12292 in v1.51.1. |
Same problem here on yunohost based on debian bullseye. Can't install synapse. |
@Josue-T Sorry for the ping. Just wanted to let you know. This is breaking even master branch upgrades and restoring feature too. |
It is still impossible to install synapse from Yunohost |
i hab the same problem
|
I am also experiencing the same problem since yesterday, unable to install Synapse server. |
Getting the same issue here too. When will there be a fix? |
I've been waiting for two weeks for a solution that still doesn't happen. |
This is also breaking Rocket.chat's setup script |
Please quickly find a solution to this bug, it has been fixed here matrix-org/synapse#12292 Is there a solution to solve the problem? |
This should be fixed on the testing branch. You can give it a try with the instructions at the end of the README. |
Sorry if I'm a bit out of the topic, but I'm wondering if it is easy to switch back from testing to the stable releases ? |
Yes, when a newer version will release on stable, you'll be able to upgrade as usual. |
If I install synapse from the test branch, will I still receive the updates once the stable branch is updated? |
@Marvin-34 Please read the message above yours. |
The testing branch works but it is incomplete, because usually I install the following branch : #301 who adds support for |
Same issue while trying to upgrade to the latest master version... And I can't restore the backup. |
This does solve the restoration issue. Thanks a lot @joelselvaraj ! 🎉 |
But I does not allow to upgrade right away after restoring correctly. |
Mine reports version 1.59.0-ynh1 but I still have the issue and Synapse doesn't respond to any of my clients. I don't see any synapse service to restart in the ynh web admin. Logs: https://paste.yunohost.org/raw/utoxesatez Any advice? |
Now this is closed as completed, should it require any manual fix beyond the usual package upgrades? |
I think no. |
Describe the bug
Synapse upgrade or backup restore fails because of a
AttributeError: module 'jinja2' has no attribute 'Markup'
error.It seems that this has been removed from the very recent new Jinja version : https://jinja.palletsprojects.com/en/3.1.x/changes/?highlight=markup#version-3-1-0 I suppose this may be more of an upstream Synapse issue though, but I figure it's worth mentioning here too.
Context
Steps to reproduce
Expected behavior
No fail during the upgrade, and no fail during the restore
Logs
Logs from the restoration are here : https://paste.yunohost.org/raw/wabaxagujo
The text was updated successfully, but these errors were encountered: