Tuesday, February 21, 2023
support@conference.yunohost.org
February
Mon Tue Wed Thu Fri Sat Sun
    1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
         
             

[16:24:43] <guilhem451[m]> bad news sorry to read that
[19:33:59] <yuno_matrix> the documentation in yunohost also gives no hints
[19:33:59] <yuno_matrix> yunohost?
[19:57:21] <yunohelper> Hello! It looks like you are asking for help. Make sure to read our guidelines: https://yunohost.org/en/help#how-to-ask-for-help. 💕
[22:05:02] <tane> Did you choose the default homeserver on install?
[22:06:50] <yuno_matrix> i chose matrix.org
[22:07:03] <yuno_matrix> which was the default
[22:10:03] <tane> I was just installing but I have to go so have a test at tane.harre.nz/element to see if it works there.
[22:10:11] <yuno_matrix> it works.
[22:10:13] <yuno_matrix> do you know if i can change the config anywhere? i mean changing the backgrounds like if i would install it manually with a config file?
[22:15:25] <eric_G> yuno_matrix: `/var/www/element/config.json`
[22:17:38] <eric_G> https://github.com/vector-im/element-web/blob/develop/docs/config.md
[22:38:47] <thatoo> Hello
[22:39:10] <thatoo> j'ai eu un scroutch lors de la mise à jour de synapse de 1.74 vers 1.76
[22:39:17] <thatoo> https://paste.yunohost.org/raw/tanurivije
[22:40:25] <thatoo> et je ne comprends pas ce qui a planté
[22:49:07] <thatoo> J'imagine que c'est dans ces lignes mais je ne suis pas sûr et ne sais pas comment résoudre le pbm :
```
2023-02-21 22:51:34,446: WARNING - running build_ext
2023-02-21 22:51:34,447: WARNING - running build_rust
2023-02-21 22:51:34,449: WARNING - error: can't find Rust compiler
2023-02-21 22:51:34,450: DEBUG -
2023-02-21 22:51:34,450: WARNING - If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
2023-02-21 22:51:34,452: DEBUG -
2023-02-21 22:51:34,452: WARNING - To update pip, run:
2023-02-21 22:51:34,453: DEBUG -
2023-02-21 22:51:34,454: WARNING - pip install --upgrade pip
2023-02-21 22:51:34,455: DEBUG -
2023-02-21 22:51:34,456: WARNING - and then retry package installation.
2023-02-21 22:51:34,457: DEBUG -
2023-02-21 22:51:34,457: WARNING - If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
2023-02-21 22:51:34,459: WARNING - Traceback (most recent call last):
2023-02-21 22:51:34,460: WARNING - File "/opt/yunohost/matrix-synapse/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
2023-02-21 22:51:34,461: WARNING - main()
2023-02-21 22:51:34,463: WARNING - File "/opt/yunohost/matrix-synapse/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
2023-02-21 22:51:34,464: WARNING - json_out['return_val'] = hook(**hook_input['kwargs'])
2023-02-21 22:51:34,465: WARNING - File "/opt/yunohost/matrix-synapse/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
2023-02-21 22:51:34,467: WARNING - return _build_backend().build_wheel(wheel_directory, config_settings,
2023-02-21 22:51:34,468: WARNING - File "/tmp/pip-build-env-2c0tf5sn/overlay/lib/python3.9/site-packages/poetry/core/masonry/api.py", line 67, in build_wheel
2023-02-21 22:51:34,469: WARNING - return WheelBuilder.make_in(poetry, Path(wheel_directory))
2023-02-21 22:51:34,471: WARNING - File "/tmp/pip-build-env-2c0tf5sn/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 80, in make_in
2023-02-21 22:51:34,472: WARNING - wb.build(target_dir=directory)
2023-02-21 22:51:34,473: WARNING - File "/tmp/pip-build-env-2c0tf5sn/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 114, in build
2023-02-21 22:51:34,475: WARNING - self._build(zip_file)
2023-02-21 22:51:34,476: WARNING - File "/tmp/pip-build-env-2c0tf5sn/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 168, in _build
2023-02-21 22:51:34,478: WARNING - self._run_build_command(setup)
2023-02-21 22:51:34,479: WARNING - File "/tmp/pip-build-env-2c0tf5sn/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 206, in _run_build_command
2023-02-21 22:51:34,480: WARNING - subprocess.check_call(
2023-02-21 22:51:34,481: WARNING - File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
2023-02-21 22:51:34,483: WARNING - raise CalledProcessError(retcode, cmd)
2023-02-21 22:51:34,484: WARNING - subprocess.CalledProcessError: Command '['/opt/yunohost/matrix-synapse/bin/python3', '/tmp/pip-install-jtyv4sqw/matrix-synapse_882559b5d5f842eaa985d9281c3c7850/setup.py', 'build', '-b', '/tmp/pip-install-jtyv4sqw/matrix-synapse_882559b5d5f842eaa985d9281c3c7850/build']' returned non-zero exit status 1.
2023-02-21 22:51:34,485: WARNING - [end of output]
2023-02-21 22:51:34,486: DEBUG -
2023-02-21 22:51:34,487: WARNING - note: This error originates from a subprocess, and is likely not a problem with pip.
2023-02-21 22:51:34,488: WARNING - ERROR: Failed building wheel for matrix-synapse
2023-02-21 22:51:34,490: DEBUG - Failed to build matrix-synapse
2023-02-21 22:51:34,490: WARNING - ERROR: Could not build wheels for matrix-synapse, which is required to install pyproject.toml-based projects
2023-02-21 22:51:34,491: DEBUG - + ynh_exit_properly
2023-02-21 22:51:34,495: DEBUG - + ynh_clean_setup
```
[22:50:55] <thatoo> et je n'ose pas lancer la mise à jour d'un autre synapse (sur un autre yunohost) du coup, j'attends de résoudre d'abord cette erreur
[22:55:13] <tituspijean> il semble que l'erreur "can't find Rust compiler" émane de `setuptools-rust 1.5.2 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.`
[23:16:45] <thatoo> ```
sudo pip install setuptools
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (52.0.0)
```
or
```
~ $ sudo apt install python3-setuptools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-setuptools is already the newest version (52.0.0-4).
python3-setuptools set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
```

... 😞
[23:17:20] <tituspijean> nah, the whole thing is running in a virtual env 🙂
[23:18:12] <tituspijean> if you are not afraid of breaking your instance (backups!), try `cd /opt/yunohost/matrix-synapse` then `source bin/activate` first
[23:18:21] <thatoo> in the log, I 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
```
[23:19:17] <thatoo> why does it uninstall setuptools-65.6.3 to then install setuptools-60.8.2 and after saying that it requires setuptools>=62.4 ?
[23:20:30] <tituspijean> ¯\_(ツ)_/¯
[23:20:55] <thatoo> and well I'd prefer not breaking it
[23:21:18] <tituspijean> looks like it's due to that: https://github.com/YunoHost-Apps/synapse_ynh/blob/634aea68e9e8d2a7e20aaa30db8df38ed27db6a8/scripts/_common.sh#L50
[23:26:41] <thatoo> Thank tituspijean for your help to identify the pbm, I open an issue and we'll see how it goes : https://github.com/YunoHost-Apps/synapse_ynh/issues/367