-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ImportError
after upgrade to Synapse 1.55.{1,2}
#12294
Comments
This turns out to be due to the new dependency on Markupsafe. The current Markupsafe is incompatible with Jinja 2.x. The workaround was to downgrade Markupsafe to 2.0.1. |
Related #12025 |
More details: #12289 added a dependency on Jinja2, prior to v3.0.0, includes the line:
If Markupsafe is not installed, this uses the internal So, that gives us a compatibility matrix:
|
Upgrading with "pip install --upgrade matrix-synapse" to version 1.55.2 in a venv ended with the ImportError staying the same as before. I had to downgrade MarkupSafe manually by issuing "pip install 'MarkupSafe<2.1.0'" which solved the issue. |
ImportError
after upgrade to Synapse 1.55.1ImportError
after upgrade to Synapse 1.55.{1,2}
evidently this is still happening in 1.55.2. I don't really understand why. If anyone who sees this could share the output from |
That said: If you previously upgraded to 1.55.1, a subsequent upgrade to 1.55.2 won't fix the problems introduced by 1.55.1, and a manual downgrade of Markupsafe is to be expected. The part that surprises me is that this affects people who upgrade directly from 1.55.0 (or earlier) to 1.55.2. |
Try make a virtualenv with Python 3.9, in my case no issues here....
|
I think what we ultimately need to do here is reintroduce #12289 for compatibility with Jinja 3.1, but also to pin our Jinja2 dependency to Soon, our work on #11537 will put an end to this madness. |
...for people using our debs, our docker images, or installing with |
well, the madness here is solely to support people installing from source (currently via (The task of building our debs and docker images is just a special case of installing from source.) |
I upgraded Synapse to 1.55.1, and got this error:
The text was updated successfully, but these errors were encountered: