-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Can't upgrade to matrix-synapse-py3 1.19.2 on Ubuntu bionic #8341
Comments
I tried to perform pip command into the venv but updated python packages are not taken into account. |
Note that #7681 bumped the attrs version. How have you installed Synapse? Is this using packages? |
I upgraded Synapse from an older version, using the official package named matrix-synapse-py3 (I added the repo in my repo list, but the corresponding deb package is here: https://packages.matrix.org/debian/pool/main/m/matrix-synapse-py3/matrix-synapse-py3_1.19.2+bionic1_amd64.deb ) |
Thanks! Do you know what the older version was? (Was it 1.19.1 or something older than that?) |
I upgraded from 1.19.1 and never had this problem before. |
it seems that python dependencies provided for the virtualenv weren't updated in the package |
This is weird, the |
@erikjohnston the venv is in /opt/venvs/matrix-synapse/ and seems up-to-date now, but it seems that it uses system python and its deps, and not the one from the venv... I removed attrs and typing-extensions from the system, and now I got theses errors:
|
I can't really think of a reason why Synapse would prefer the libraries from the system rather than the venv, in fact that's the entire point of a venv 😕 That particular error looks like Twisted wants a more up to date attrs, so you may just need to update it in the venv? It might be worth completely uninstalling attrs in the venv and then reinstalling it? |
I wouldn't recommend messing about with the stuff in the venv that is installed by the package. Better to reinstall the package than start removing things from the venv, otherwise you're going to get into a mess. In terms of the root problem: have you modified the systemd |
@richvdh Hi, I don't remember having edited it, here is the matrix-synapse.service file (your command line wasn't working, so I too the liberty to modify it):
|
ok, that looks fine. (Sorry, I meant I'm not seeing anything in the output above that suggests that it's using either the system python, or preferring the system libraries. It's expected that Can you share the output of the following:
|
I've removed the "release blocker" label as this seems to be an isolated incident rather than a problem with the package. |
So it seems to use the system attr for an unknown reason... |
ok, the problem is that things are installed in
so the question becomes: how did you manage to install an |
I don't know, pip (python3.6 -m pip) doesn't know about it. I removed it "manually", checked that I didn't have a remaining typing-extension and now it seems to work properly. Thanks for your help! |
On Ubuntu Bionic, it is not possible to upgrade to latest matrix-synapse-py3 as synapse won't start due to missing dependencies: Missing Requirements: 'attrs>=19.1.0', 'typing-extensions>=3.7.4'.
Please fix.
The text was updated successfully, but these errors were encountered: