ERROR: Cannot uninstall 'PyYAML'

Bonjour,
J’ai un problème lors de l’installation des dépendances de xiaomi home.
Le message d’erreur suivant s’affiche dans les logs :

"Found existing installation: PyYAML 5.3.1
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall."

Et l’installation tourne en boucle.
Quelqu’un peut m’aider ?
Merci

Salut,

On ne connait ni la version de l’OS, la machine, la version de Jeedom, la version du plugin.
On a pas la page santé de Jeedom, pas le log complet de l’install des dépendances.

Aider oui à condition de fournir des infos techniques.

1 « J'aime »

Bonjour,
Ci-dessous les infos

version os : jeedom debian bullseye amd64 4.3.22

machine : vm

version jeedom : 4.3.23

version plugin xiaomi : 2022-06-06 01:02:25

log complet install des dépedances :

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_xiaomihome
+ echo 1
+ echo 2
++ cut -f 2-
++ awk '$1 <= 4'
++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
+ RESULTTODELETE=
++ sed 's, ,\ ,g'
++ echo ''
+ RESULTTODELETE2=
+ xargs rm -rf
+ echo ''
+ echo 3
+ sudo pip3 cache purge
Files removed: 248
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (24.0)
DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 5
+ sudo pip3 install --force-reinstall --upgrade python-miio
Collecting python-miio
Downloading python_miio-0.5.12-py3-none-any.whl.metadata (12 kB)
Collecting PyYAML<7,>=5 (from python-miio)
Downloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting android_backup<1,>=0 (from python-miio)
Downloading android_backup-0.2.0.tar.gz (6.1 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting appdirs<2,>=1 (from python-miio)
Downloading appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting attrs (from python-miio)
Downloading attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting click>=8 (from python-miio)
Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting construct<3.0.0,>=2.10.56 (from python-miio)
Downloading construct-2.10.70-py3-none-any.whl.metadata (4.2 kB)
Collecting croniter>=1 (from python-miio)
Downloading croniter-2.0.2-py2.py3-none-any.whl.metadata (24 kB)
Collecting cryptography>=35 (from python-miio)
Downloading cryptography-42.0.5-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.3 kB)
Collecting defusedxml<1,>=0 (from python-miio)
Downloading defusedxml-0.7.1-py2.py3-none-any.whl.metadata (32 kB)
Collecting micloud (from python-miio)
Downloading micloud-0.6.tar.gz (9.4 kB)

Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting netifaces<1,>=0 (from python-miio)
Downloading netifaces-0.11.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.metadata (9.0 kB)
Collecting pytz (from python-miio)
Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tqdm<5,>=4 (from python-miio)
Downloading tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.6/57.6 kB 4.6 MB/s eta 0:00:00
Collecting zeroconf<1,>=0 (from python-miio)
Downloading zeroconf-0.131.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.1 kB)
Collecting python-dateutil (from croniter>=1->python-miio)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting cffi>=1.12 (from cryptography>=35->python-miio)
Downloading cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting async-timeout>=3.0.0 (from zeroconf<1,>=0->python-miio)
Downloading async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting ifaddr>=0.1.7 (from zeroconf<1,>=0->python-miio)
Downloading ifaddr-0.2.0-py3-none-any.whl.metadata (4.9 kB)
Collecting requests (from micloud->python-miio)
Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting tzlocal (from micloud->python-miio)
Downloading tzlocal-5.2-py3-none-any.whl.metadata (7.8 kB)
Collecting pycryptodome (from micloud->python-miio)
Downloading pycryptodome-3.20.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.4 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=35->python-miio)
Downloading pycparser-2.21-py2.py3-none-any.whl.metadata (1.1 kB)
Collecting six>=1.5 (from python-dateutil->croniter>=1->python-miio)
Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting charset-normalizer<4,>=2 (from requests->micloud->python-miio)
Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests->micloud->python-miio)
Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests->micloud->python-miio)
Downloading urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests->micloud->python-miio)
Downloading certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Downloading python_miio-0.5.12-py3-none-any.whl (330 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 331.0/331.0 kB 10.6 MB/s eta 0:00:00
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Downloading click-8.1.7-py3-none-any.whl (97 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 5.4 MB/s eta 0:00:00
Downloading construct-2.10.70-py3-none-any.whl (63 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.0/63.0 kB 5.1 MB/s eta 0:00:00
Downloading croniter-2.0.2-py2.py3-none-any.whl (19 kB)
Downloading cryptography-42.0.5-cp39-abi3-manylinux_2_28_x86_64.whl (4.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 46.3 MB/s eta 0:00:00
Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Downloading netifaces-0.11.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (32 kB)
Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 505.5/505.5 kB 29.3 MB/s eta 0:00:00
Downloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 738.9/738.9 kB 42.8 MB/s eta 0:00:00
Downloading tqdm-4.66.2-py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.3/78.3 kB 7.1 MB/s eta 0:00:00
Downloading zeroconf-0.131.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 30.9 MB/s eta 0:00:00
Downloading attrs-23.2.0-py3-none-any.whl (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 kB 408.9 kB/s eta 0:00:00
Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Downloading cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 443.4/443.4 kB 8.8 MB/s eta 0:00:00
Downloading ifaddr-0.2.0-py3-none-any.whl (12 kB)
Downloading pycryptodome-3.20.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 26.3 MB/s eta 0:00:00
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 1.7 MB/s eta 0:00:00
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 380.7 kB/s eta 0:00:00
Downloading tzlocal-5.2-py3-none-any.whl (17 kB)
Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 kB 580.9 kB/s eta 0:00:00
Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.3/142.3 kB 10.3 MB/s eta 0:00:00
Downloading idna-3.6-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 2.2 MB/s eta 0:00:00
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.1/121.1 kB 4.8 MB/s eta 0:00:00
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 6.2 MB/s eta 0:00:00
Building wheels for collected packages: android_backup, micloud
Building wheel for android_backup (setup.py): started
Building wheel for android_backup (setup.py): finished with status 'done'
Created wheel for android_backup: filename=android_backup-0.2.0-py3-none-any.whl size=7616 sha256=18c87116567a2be4c92c9237b13c513aac19b7bcf9d0b1c4c853c30b832b2d23
Stored in directory: /root/.cache/pip/wheels/78/8e/9f/f9d241f9ca17cca7c7248171047765624a1f5c1236edb4f594
Building wheel for micloud (setup.py): started
Building wheel for micloud (setup.py): finished with status 'done'
Created wheel for micloud: filename=micloud-0.6-py3-none-any.whl size=9970 sha256=7cb3d200aa077d8c1cd39c37a16bb6638143193f8e6f4830497adfbc7130d1c9
Stored in directory: /root/.cache/pip/wheels/6b/e6/39/8d3a108b897b9670ef806526dc73227438bdd3f2a08bcab5de
Successfully built android_backup micloud
DEPRECATION: gpg 1.14.0-unknown has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: pytz, netifaces, ifaddr, appdirs, android_backup, urllib3, tzlocal, tqdm, six, PyYAML, pycryptodome, pycparser, idna, defusedxml, construct, click, charset-normalizer, certifi, attrs, async-timeout, zeroconf, requests, python-dateutil, cffi, micloud, cryptography, croniter, python-miio
Attempting uninstall: pytz
Found existing installation: pytz 2024.1
Uninstalling pytz-2024.1:
Successfully uninstalled pytz-2024.1
Attempting uninstall: netifaces
Found existing installation: netifaces 0.11.0
Uninstalling netifaces-0.11.0:
Successfully uninstalled netifaces-0.11.0
Attempting uninstall: ifaddr
Found existing installation: ifaddr 0.2.0
Uninstalling ifaddr-0.2.0:
Successfully uninstalled ifaddr-0.2.0
Attempting uninstall: appdirs
Found existing installation: appdirs 1.4.4
Uninstalling appdirs-1.4.4:
Successfully uninstalled appdirs-1.4.4
Attempting uninstall: android_backup
Found existing installation: android_backup 0.2.0
Uninstalling android_backup-0.2.0:
Successfully uninstalled android_backup-0.2.0
Attempting uninstall: urllib3
Found existing installation: urllib3 2.2.1
Uninstalling urllib3-2.2.1:
Successfully uninstalled urllib3-2.2.1
Attempting uninstall: tzlocal
Found existing installation: tzlocal 5.2
Uninstalling tzlocal-5.2:
Successfully uninstalled tzlocal-5.2
Attempting uninstall: tqdm
Found existing installation: tqdm 4.66.2
Uninstalling tqdm-4.66.2:
Successfully uninstalled tqdm-4.66.2
Attempting uninstall: six
Found existing installation: six 1.16.0
Uninstalling six-1.16.0:
Successfully uninstalled six-1.16.0
Attempting uninstall: PyYAML
Found existing installation: PyYAML 5.3.1
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
+ echo 6
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end xiaomihome
+ echo 7
+ rm /tmp/jeedom_install_in_progress_xiaomihome
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Merci beaucoup pour votre aide.

Bonjour

J’ai également eu ce problème et j’ai pu le résoudre grâce à ce sujet

Pour résumer, il faut exécuter en SSH:

sudo -H pip3 install --ignore-installed PyYAML

puis ensuite

sudo pip3 install --force-reinstall --upgrade python-miio

Suite à ça, tout est rentré dans l’ordre.