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

installation fails: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL' #368

Closed isAAAc closed 1 year ago

isAAAc commented 1 year ago

Describe the bug

install fails

Context

Steps to reproduce

Expected behavior

expecting synapse installation OK

Logs

https://paste.yunohost.org/raw/xukicatewu

2023-03-03 15:27:41,118: DEBUG - + pip3 install --upgrade setuptools==60.8.2 wheel pip
2023-03-03 15:27:44,250: DEBUG - Collecting setuptools==60.8.2
2023-03-03 15:27:44,368: DEBUG -   Downloading setuptools-60.8.2-py3-none-any.whl (1.1 MB)
2023-03-03 15:27:44,836: DEBUG - Collecting wheel
2023-03-03 15:27:44,861: DEBUG -   Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
2023-03-03 15:27:44,864: DEBUG - Requirement already satisfied: pip in /opt/yunohost/matrix-synapse/lib/python3.9/site-packages (20.3.4)
[...]
2023-03-03 15:27:48,952: DEBUG - Successfully installed pip-23.0.1 setuptools-60.8.2 wheel-0.38.4
[...]
2023-03-03 15:28:27,054: DEBUG - Collecting setuptools>=62.4
2023-03-03 15:28:27,071: DEBUG -   Downloading setuptools-67.4.0-py3-none-any.whl (1.1 MB)
2023-03-03 15:28:27,156: DEBUG -      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 13.4 MB/s eta 0:00:00
2023-03-03 15:28:28,995: DEBUG - Installing collected packages: webencodings, sortedcontainers, phonenumbers, netaddr, msgpack, incremental, ijson, constantly, charset-normalizer, urllib3, unpaddedbase64, typing_extensions, six, simplejson, setuptools, semantic-version, PyYAML, pyrsistent, pyasn1-modules, prometheus-client, Pillow, packaging, ldap3, idna, frozendict, certifi, bcrypt, attrs, zope.interface, setuptools-rust, requests, PyNaCl, pydantic, matrix-common, jsonschema, hyperlink, cryptography, canonicaljson, bleach, Automat, Twisted, signedjson, service-identity, pymacaroons, matrix-synapse-ldap3, treq, matrix-synapse
2023-03-03 15:28:37,966: DEBUG -   Attempting uninstall: setuptools
2023-03-03 15:28:37,968: DEBUG -     Found existing installation: setuptools 60.8.2
2023-03-03 15:28:38,176: DEBUG -     Uninstalling setuptools-60.8.2:
2023-03-03 15:28:38,228: DEBUG -       Successfully uninstalled setuptools-60.8.2
2023-03-03 15:28:43,774: DEBUG -   Attempting uninstall: cryptography
2023-03-03 15:28:43,776: DEBUG -     Found existing installation: cryptography 39.0.2
2023-03-03 15:28:43,850: DEBUG -     Uninstalling cryptography-39.0.2:
2023-03-03 15:28:43,855: DEBUG -       Successfully uninstalled cryptography-39.0.2
2023-03-03 15:28:47,260: WARNING - ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL'
2023-03-03 15:28:47,261: WARNING - Check the permissions.
2023-03-03 15:28:47,261: DEBUG - 
2023-03-03 15:28:48,152: DEBUG - + ynh_exit_properly
2023-03-03 15:28:48,656: DEBUG - + ynh_clean_setup
2023-03-03 15:28:48,657: DEBUG - + ynh_clean_check_starting

thx for your help ;)

If applicable and useful, add screenshots to help explain your problem.

Josue-T commented 1 year ago

Hello,

Can you try if from this branch it fix this issue: https://github.com/YunoHost-Apps/synapse_ynh/tree/cleanup_install

isAAAc commented 1 year ago

hello @Josue-T , i saw you merged your change in testing branch, just tried to install the testing: # yunohost app install https://github.com/YunoHost-Apps/synapse_ynh/tree/testing --debug :ok_hand: SUCCESS Installation completed

thx for your time and your work ;) :pray: