Dépendances NOK sur nouvelle debian 11

bonjour a tous

je suis sur un Proxmox tout neuf avec une debian 11 installée via l’image officielle.
tout est a jour et je fait la migration progressive de mon systeme en repartant d’une VM propre

je galére avec l’installation du plug in xiaomi pour mon aspirateur robot.

l’installation des dépendances est NOK

et voici le log :

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_xiaomihome
+ echo 1
+ echo 2
++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ awk '$1 <= 4'
++ cut -f 2-
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 3
+ sudo pip3 cache purge
Files removed: 168
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (24.1.2)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 5
+ sudo python3 -m pip 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.5-py2.py3-none-any.whl.metadata (25 kB)
Collecting cryptography>=35 (from python-miio)
  Downloading cryptography-42.0.8-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.4-py3-none-any.whl.metadata (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.6/57.6 kB 3.3 MB/s eta 0:00:00
Collecting zeroconf<1,>=0 (from python-miio)
  Downloading zeroconf-0.132.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.0 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 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 requests (from micloud->python-miio)
  Downloading requests-2.32.3-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 pycparser (from cffi>=1.12->cryptography>=35->python-miio)
  Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
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.7-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests->micloud->python-miio)
  Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests->micloud->python-miio)
  Downloading certifi-2024.7.4-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.1 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 12.9 MB/s eta 0:00:00
Downloading construct-2.10.70-py3-none-any.whl (63 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.0/63.0 kB 6.3 MB/s eta 0:00:00
Downloading croniter-2.0.5-py2.py3-none-any.whl (20 kB)
Downloading cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl (3.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 56.6 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 44.7 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 50.6 MB/s eta 0:00:00
Downloading tqdm-4.66.4-py3-none-any.whl (78 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.3/78.3 kB 6.7 MB/s eta 0:00:00
Downloading zeroconf-0.132.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 91.2 MB/s eta 0:00:00
Downloading attrs-23.2.0-py3-none-any.whl (60 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 kB 761.8 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 38.6 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 75.8 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 23.0 MB/s eta 0:00:00
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 kB 5.4 MB/s eta 0:00:00
Downloading tzlocal-5.2-py3-none-any.whl (17 kB)
Downloading certifi-2024.7.4-py3-none-any.whl (162 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.0/163.0 kB 17.3 MB/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 16.5 MB/s eta 0:00:00
Downloading idna-3.7-py3-none-any.whl (66 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.8/66.8 kB 7.5 MB/s eta 0:00:00
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading urllib3-2.2.2-py3-none-any.whl (121 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.4/121.4 kB 12.4 MB/s eta 0:00:00
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 12.4 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=7632 sha256=0019fb678f350464e5b4d4b25d206a14d81ef687f9a65e97761f5c1931644ac3
  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=9977 sha256=a90b124b21f9c163a44ab1c5468b33ba48f9b50a42fe2300f811b0a5bac540b2
  Stored in directory: /root/.cache/pip/wheels/6b/e6/39/8d3a108b897b9670ef806526dc73227438bdd3f2a08bcab5de
Successfully built android_backup micloud
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
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.2
    Uninstalling urllib3-2.2.2:
      Successfully uninstalled urllib3-2.2.2
  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.4
    Uninstalling tqdm-4.66.4:
      Successfully uninstalled tqdm-4.66.4
  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: uninstall-distutils-installed-package

× Cannot uninstall PyYAML 5.3.1
╰─> 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******************

le démon semble demarrer :

et l’aspirateur est bien detecté :

mais aucun ordre ni refresh ne passe (il ne se passe rien du tout avec le plug in)

quand je regarde les logs du plug in j’ai un message d’erreur :

2024-07-08 10:40:02.963] INFO  : Callback : http://127.0.0.1:80/plugins/xiaomihome/core/php/jeeXiaomiHome.php
[2024-07-08 10:40:02.963] INFO  : Cycle : 0.05
[2024-07-08 10:40:02.969] INFO  : Start listening...
[2024-07-08 10:40:15.485] ERROR  : SOCKET-READ------Exception on socket : 'NoneType' object has no attribute 'setPlainData'

quelqu’un aurais une idée ?

autre info

le jeedom et l’aspirateur ne sont pas sur le meme sous réseau

192.16.1.X pour jeedom (sous réseau coeur qui accéde a tous les autres réseaux)

192.168.3.x pour l’aspirateur (sous reseau des objets connectés qui n’a pas accés a tout)

mais je suis certain a 100% que la conf reseau est bonne

Hello

je crois qu’il faut passer ton plugin en beta (il y a eu une correction)
essai et redis nous

j’ai exactement le meme souci en beta :frowning:

meme en relancant les dépendances une fois le plugin passé en beta ?

oui, meme aprés relance des dépendances

et meme aprés supression du plug in et réinstallation en beta

ouais alors là… bizarre
tu as essayé de passer sur le nouveau plugin mirobot ? je ne sais pas si le S7 est supporté mais je pense que si

Salut

Il faudrait la page santé jeedom . Car jeedom tout neuf, cela ne dit pas grand chose.

Antoine

Hello, il y a un sujet sur cette erreur je pense.

la voici

les deux plug in KO sont les plug in zwave, je n’ai pas encore fait la migration de la clef (et encore moins celle vers ZwaveJS)

bien joué :slight_smile:
en ssh il faut faire cette commande @shinjo

sudo pip install pip==24.0

ça n’a rien changé…

j’ai installé une autre VM jeedom mais sur le meme sous reseau que le robot et ca a marché du premier coup.

probléme contourné donc :slight_smile:

Plus nécessaire avec le core > 4.4.7

1 « J'aime »

pour info voici ce que ça a fait quand j’ai lancé la commande :

Collecting pip==24.0
  Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.0-py3-none-any.whl (2.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 17.4 MB/s eta 0:00:00
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.1.2
    Uninstalling pip-24.1.2:
      Successfully uninstalled pip-24.1.2
Successfully installed pip-24.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.

Comme je disais juste avant, ca ne sert plus.


La prochaine version du core excluera d’office le dossier venv des backups (pour tous les plugins), 2 avantages:

  • le backup sera un peu plus petit
  • plus de plantage lors d’une restauration car le dossier ne sera plus présent

Il sera toujours nécessaire de relancer l’installation des dépendances comme cela a toujours été le cas pour tous les plugins (ce qui recréera ce dossier dans le cas de ce plugin, comportement attendu).