YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible #367

Closed Thatoo closed 1 year ago

Thatoo commented 1 year ago

I tried to update from v 1.74 to 1.76. It failed : https://paste.yunohost.org/raw/tanurivije

In the logs, I can read

2023-02-21 22:48:32,964: DEBUG - Installing collected packages: setuptools, pip
2023-02-21 22:48:32,965: DEBUG -   Attempting uninstall: setuptools
2023-02-21 22:48:32,968: DEBUG -     Found existing installation: setuptools 65.6.3
2023-02-21 22:48:33,266: DEBUG -     Uninstalling setuptools-65.6.3:
2023-02-21 22:48:33,549: DEBUG -       Successfully uninstalled setuptools-65.6.3
2023-02-21 22:48:34,973: DEBUG -   Attempting uninstall: pip
2023-02-21 22:48:34,977: DEBUG -     Found existing installation: pip 22.3.1
2023-02-21 22:48:35,637: DEBUG -     Uninstalling pip-22.3.1:
2023-02-21 22:48:35,721: DEBUG -       Successfully uninstalled pip-22.3.1
2023-02-21 22:48:39,189: WARNING - ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
2023-02-21 22:48:39,191: WARNING - setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.
2023-02-21 22:48:39,193: DEBUG - Successfully installed pip-23.0.1 setuptools-60.8.2

I guess, it uninstall setuptools-65.6.3 and install setuptools-60.8.2 because of https://github.com/YunoHost-Apps/synapse_ynh/blob/634aea68e9e8d2a7e20aaa30db8df38ed27db6a8/scripts/_common.sh#L50 but then, it fails because setuptools-rust 1.5.2 requires setuptools>=62.4

What should I do then?

Josue-T commented 1 year ago

Hello,

What is the result of this command: uname -m ?

Thatoo commented 1 year ago

It used to be armv7l but then, because of nextcloud v25 fear not being supported on 32 bit, I followed this tutorial https://www.sindastra.de/p/1345/switch-your-raspberry-pi-to-64-bit-kernel-raspbian and now it gives aarch64 so CPU and kernel are 64 bit but applications are still in 32 bit. If you think that the issue, I'm afraid my only chance is to backup, install the proper 64 bit raspbery pi yunohost and restore before upgrade.

Josue-T commented 1 year ago

OK I understand more the issue. Well yes it linked to this as for armv7 we use a specific prebuild package and for others architecture we use the standard wheel. The issue is that your architecture is detected as arm64 but the pyton venv still be on armv7 and in this cas you must have rust installed to build cryptography.

I see some solution for you:

Thatoo commented 1 year ago

Ok thanks, I'll do the first one then unless you can give me a tutorial to do the second one you did years ago.

jeanloup33 commented 1 year ago

Hello. I've the same issue when i upgraded from v 1.74 to 1.76. my architecture is x86_64. "setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible."

Josue-T commented 1 year ago

Hello. I've the same issue when i upgraded from v 1.74 to 1.76. my architecture is x86_64. "setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible."

Well was your upgrade failled ? If yes please create a new issue with the full log

tio-trom commented 1 year ago

I get this error too many times when I upgrade but the upgrade works. Is it a big issue?

setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.

jeanloup33 commented 1 year ago

I've got the same message, but the upgrade also works for me.

Le mar. 2 mai 2023 à 14:35, Tio @.***> a écrit :

I get this error too many times when I upgrade but the upgrade works. Is it a big issue?

setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.

— Reply to this email directly, view it on GitHub https://github.com/YunoHost-Apps/synapse_ynh/issues/367#issuecomment-1531402090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ4XFQZZCO6XVC2Z6QDHAA3XED5SBANCNFSM6AAAAAAVDUHRYA . You are receiving this because you commented.Message ID: @.***>

lapineige commented 1 year ago

I think I had this issue recently but a while ago after migrating from x86 to ARM.

jorge-vitrubio commented 1 year ago

same problem here today but the update went through

2023-06-02 19:02:59,238: WARNING - setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.

now synapse/matrix is not connecting to the outside

logs here: https://paste.yunohost.org/raw/lokokubodo

lapineige commented 10 months ago

Hello, During a synapse update to v1.90, I noticed this warning:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
setuptools-rust 1.6.0 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.

Should like the same issue as here. Any idea how to solve this ? 🤔

I guess we should reopen.