Dependances ne s'installent pas

Bonjour,
Malgré les posts ouverts à ce sujet je ne trouve pas de solutions.
Je viens de réinstaller jeedom sur Freebox, tout fonctionne bien sauf le plugin Xiaomi (bon plugin pourtant :slight_smile: )
Le problème concerne l’installation des dépendances et ce malgré l’installation de tous les packets python et autres trouvés dans le forum.

Voici les logs :

usage: xiaomihomed.py [-h] [--device DEVICE] [--loglevel LOGLEVEL]
                      [--pidfile PIDFILE] [--callback CALLBACK]
                      [--apikey APIKEY] [--socketport SOCKETPORT]
                      [--sockethost SOCKETHOST] [--cycle CYCLE]
xiaomihomed.py: error: argument --apikey: expected one argument
[2022-11-11 21:42:15][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

Je vous remercie par avance pour toute l’aide que vous pourrez m’apporter.

Bonjour,

Dans l’onglet configuration l’installation des dépendances est inscrit comme KO ?

Ce qui est étrange c’est que les dépendances sont en NOK alors que le démon arrive à passer en OK :confused:

Peux-tu relancer les dépendances et nous transmettre le fichier de log des dépendances s’il te plaît ?

1 « J'aime »

Le voici, au démarrage de l’install des dépendance j’ai 4%, puis 5% et fail.

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_xiaomihome
+ echo 1
+ echo 2
++ awk '$1 <= 4'
++ cut -f 2-
++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.7/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: 78
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (22.3.1)
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 (330 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 331.0/331.0 kB 502.2 kB/s eta 0:00:00
Collecting PyYAML<7,>=5
Downloading PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (656 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 657.0/657.0 kB 965.2 kB/s eta 0:00:00
Collecting tqdm<5,>=4
Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 864.9 kB/s eta 0:00:00
Collecting cryptography>=35
Downloading cryptography-38.0.3-cp36-abi3-manylinux_2_28_aarch64.whl (4.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 15.9 MB/s eta 0:00:00
Collecting croniter>=1
Downloading croniter-1.3.7-py2.py3-none-any.whl (17 kB)
Collecting zeroconf<1,>=0
Downloading zeroconf-0.39.4-py3-none-any.whl (106 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.4/106.4 kB 1.2 MB/s eta 0:00:00
Collecting defusedxml<1,>=0
Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting android_backup<1,>=0
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 attrs
Downloading attrs-22.1.0-py2.py3-none-any.whl (58 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 kB 626.1 kB/s eta 0:00:00
Collecting micloud
Downloading micloud-0.5.tar.gz (7.8 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting click>=8
Downloading click-8.1.3-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 1.1 MB/s eta 0:00:00
Collecting appdirs<2,>=1
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting pytz
Downloading pytz-2022.6-py2.py3-none-any.whl (498 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 498.1/498.1 kB 5.4 MB/s eta 0:00:00
Collecting netifaces<1,>=0
Downloading netifaces-0.11.0.tar.gz (30 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting importlib_metadata<2,>=1
Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting construct<3.0.0,>=2.10.56
Downloading construct-2.10.68.tar.gz (57 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.9/57.9 kB 624.4 kB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting python-dateutil
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 2.8 MB/s eta 0:00:00
Collecting cffi>=1.12
Downloading cffi-1.15.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (435 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 435.6/435.6 kB 4.8 MB/s eta 0:00:00
Collecting zipp>=0.5
Downloading zipp-3.10.0-py3-none-any.whl (6.2 kB)
Collecting async-timeout>=4.0.1
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting ifaddr>=0.1.7
Downloading ifaddr-0.2.0-py3-none-any.whl (12 kB)
Collecting pycryptodome
Downloading pycryptodome-3.15.0-cp35-abi3-manylinux2014_aarch64.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 11.8 MB/s eta 0:00:00
Collecting requests
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 741.9 kB/s eta 0:00:00
Collecting tzlocal
Downloading tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting typing-extensions>=3.6.5
Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting pycparser
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 1.5 MB/s eta 0:00:00
Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting charset-normalizer<3,>=2
Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 616.7 kB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2022.9.24-py3-none-any.whl (161 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 161.1/161.1 kB 1.9 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.4/140.4 kB 1.6 MB/s eta 0:00:00
Collecting pytz-deprecation-shim
Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting backports.zoneinfo
Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.1/74.1 kB 812.5 kB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting tzdata
Downloading tzdata-2022.6-py2.py3-none-any.whl (338 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 338.8/338.8 kB 3.1 MB/s eta 0:00:00
Building wheels for collected packages: android_backup, construct, netifaces, micloud, backports.zoneinfo
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=7632 sha256=a73de69f93d7d34c2c14b4be071a1c3a56020fee0c538edb902018042746e95d
Stored in directory: /root/.cache/pip/wheels/07/e6/b4/33e56a5de663e2c3f13db7365219a9b9c83b2a52db9608ab3c
Building wheel for construct (setup.py): started
Building wheel for construct (setup.py): finished with status 'done'
Created wheel for construct: filename=construct-2.10.68-py3-none-any.whl size=59210 sha256=348c694ea970b80a523103a767acac3f9b92c32459d262eb5705be2fa85168f7
Stored in directory: /root/.cache/pip/wheels/37/27/e3/ebee993c1fbc7837cc7729f5005881cb2ecb8c5478dbe5b0f1
Building wheel for netifaces (setup.py): started
Building wheel for netifaces (setup.py): finished with status 'done'
Created wheel for netifaces: filename=netifaces-0.11.0-cp37-cp37m-linux_aarch64.whl size=40535 sha256=0913fbf398002ce247fd609e61a83c196f1cf28aa0c5c8368bc9e984ec5a2fc1
Stored in directory: /root/.cache/pip/wheels/75/5b/0e/b8897ba99cf371bd7e71edc46b745a7741660beb343d809863
Building wheel for micloud (setup.py): started
Building wheel for micloud (setup.py): finished with status 'done'
Created wheel for micloud: filename=micloud-0.5-py3-none-any.whl size=8014 sha256=ef382f195f6e1248b787c28b0c1ced3372d8e6294baf321f21d9b243e41a7891
Stored in directory: /root/.cache/pip/wheels/44/73/34/4126c014f2f0cd522933f72e55d11e1b164941e80f5be5b7d0
Building wheel for backports.zoneinfo (pyproject.toml): started
Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'done'
Created wheel for backports.zoneinfo: filename=backports.zoneinfo-0.2.1-cp37-cp37m-linux_aarch64.whl size=78856 sha256=d4fda64f9d6ce655a7aafe815718763a0d6a7e1329ee36dd46bf025bffdaa1ab
Stored in directory: /root/.cache/pip/wheels/0e/ee/db/44fb35db781c56c37a9563512be38958feb019f09d53522e34
Successfully built android_backup construct netifaces micloud backports.zoneinfo
Installing collected packages: pytz, netifaces, ifaddr, appdirs, android_backup, zipp, urllib3, tzdata, typing-extensions, tqdm, six, PyYAML, pycryptodome, pycparser, idna, defusedxml, construct, charset-normalizer, certifi, backports.zoneinfo, attrs, requests, pytz-deprecation-shim, python-dateutil, importlib_metadata, cffi, async-timeout, zeroconf, tzlocal, cryptography, croniter, click, micloud, python-miio
Attempting uninstall: pytz
Found existing installation: pytz 2022.6
Uninstalling pytz-2022.6:
Successfully uninstalled pytz-2022.6
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: zipp
Found existing installation: zipp 3.10.0
Uninstalling zipp-3.10.0:
Successfully uninstalled zipp-3.10.0
Attempting uninstall: urllib3
Found existing installation: urllib3 1.26.12
Uninstalling urllib3-1.26.12:
Successfully uninstalled urllib3-1.26.12
Attempting uninstall: tzdata
Found existing installation: tzdata 2022.6
Uninstalling tzdata-2022.6:
Successfully uninstalled tzdata-2022.6
Attempting uninstall: typing-extensions
Found existing installation: typing_extensions 4.4.0
Uninstalling typing_extensions-4.4.0:
Successfully uninstalled typing_extensions-4.4.0
Attempting uninstall: tqdm
Found existing installation: tqdm 4.64.1
Uninstalling tqdm-4.64.1:
Successfully uninstalled tqdm-4.64.1
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 3.13
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
+ rm /tmp/jeedom_install_in_progress_xiaomihome
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Hello, dans la configuration jeedom > api vérifie que xiaomihome a bien une clé, si c’est le cas ou si ça ne l’est pas, régénère en une et relance le demon xiaomihome.

J’ai déjà testé cette manip. Il y a bien une clé, et après régénération j’ai même redémarrer jeedom.
Pas mieux hélas. Merci pour ton intérêt vis à vis de mon soucis :slight_smile:

Le problème semble pourtant venir de la, tu n’as pas la ligne de commande complète qui s’affiche dans les logs juste au déçu de ce que tu as sortis des logs ? (Le mieux est toujours d’envoyer les logs complet)

J’ai vidé les logs avant de relancer les dépendances, j’ai mis absolument tout ce qui s’est affiché.
Désolé

J’ai ca aussi :
[2022-11-12 22:25:13][ERROR] : Attention je pense qu’il y a un soucis avec le démon que j’ai relancé plus de 3 fois consécutivement
/usr/lib/python3/dist-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn’t match a supported version!
RequestsDependencyWarning)

en tout cas niveau dépendance :

Found existing installation: PyYAML 3.13
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.

Je ne sais pas si ça de l’importance, mais je pense que oui vu le comportement du démon.

J’ai essayé d’installer ce paquet, mais j’ai un message comme quoi il est introuvable malgré un apt-get update :confused:

E: Unable to locate package PyYAML

Bonjour,
Suite à la mise à jour de Jeedom 4.3.10 ce matin et des MAJ des plugin, J’ai exactement le même soucis.
Même erreur dans le log xiaomihome_packages.
Le demon est OK mais l’install des dépendances plante.
Je suis sur une VM freebox delta:

Voici les logs si ça peut aider. (Mais je crois que ça n’apportera rien de plus )
xiaomihome_packages.txt (22,4 Ko)

Le message indique plutôt qu’il veut le désinstaller mais cela dépasse mes compétences pour aider

Vous pouvez essayer une demande de support auprès de Lunarok le dev de ce plugin

1 « J'aime »

J’ai également ce problème depuis l’installation de Jeedom en 4.3.10…

Pour rappel cet endroit n’est pas un helpdesk et il est plus que déconvenu de tagguer le developpeur directement !!

Si vous avez un problème bloquant, vous pouvez faire un ticket sur le plugin si vous n’obtenez pas de réponse de la communauté…

1 « J'aime »

Oh pardon, je corrige cela de suite :confused:

Bonjour,
Je ne sais pas si les autres personnes qui ont le soucis ont également ça dans le menu Plugins/Gestion des plugins :
image.
J’ai 2 occurrences mais les deux sont les même ( si je désactive un l’autre l’es aussi ) .

Non je n’ai bien qu’un seul plugin pour ma part.

Je viens de saisir un ticket sur le plugin . Je n’hésiterai pas à vous partager la réponse .

1 « J'aime »