Aucune integration possible de module Xiaomi sous Debian 11

log.txt (340,8 Ko)


Salut à tous,
Bon, problème depuis passage sous Debian 11, impossible d’intégrer un quelconque nouveau module Xiami Aquara. Tout fonctionnait bien il y a encore quelques mois, sous Debian 10. Je suis en derniere version de Jeedom et tout est bon côté santé.
J’ai vérifié, en installant la version 5.4.9 de l’APK Xiaomi Home, les password et le mode local bien activé sur les Gateway (la commande nmap… 9898… fonctionne bien)… Application 5.4.9 en Anglais sur mon serveur historique China…
J’ai essayé le mode intégration dans Jeedom (en cliquant sur le « + »), ça a l’air de fonctionner mais rien n’arrive.
Les logs DEBUG (essai d’intégration vers 14h35), trop gros pour être en texte formaté, sont en PJ comme la page Santé + Dependances (réinstallées aussi).
xiaomihome_packages.txt (31,6 Ko)

Merci par avance pour l’aide de quelqu’un qui passera par là…

PS: Entre parenthèse, je maudits ce passage à Debian 11, pourtnat j’ai attendu des années avant mon passage, mais plus le choix par rapport à un plugin météo…
Je ne vous cache pas que je trouve assez moyen de la part de l’équipe Jeedom de nous informer que Debian 11 est soutenu alors qu’un plugin important comme Xiaomi a une fuite mémoire lié à Python et que je dois le redémarrer tous les soirs (comme d’autres plugins liés à Python (RFXCom)…
Il faudrait peut-être expliquer aux utilisateurs qui veulent franchir le pas qu’il faut se retaper toutes l’intégration des modules Aqua dans 2 autres plugins pour ne plus avoir de problème de fuite mémoire, et acheter une clef USB qui fassent office de gateway, mais bref.


Informations Jeedom

Core : 4.4.19 (master)
DNS Jeedom : oui

Plugin : Xiaomi Home
Version : 2022-06-06 01:02:25 (stable)
Statut Démon : Démarré - (2024-11-11 14:39:48)

Bonsoir.

Le plugin RFXCOM n’a plus de problème, du moins en Debian 11 et 12.

OK noté, merci.
C’est Zwave pardon qu’il faut redémarrer aussi, en plus de Xiaomi non ?

Zwave pareil, il faut le remplacer par zwaveJS, lui non plus n’a pas de problème de fuite de mémoire.

Je vais voir ça merci.
Xiaomi est un plugin important de la communauté non ? Si oui, Pourquoi personne ne traite le problème de fuite de python ?

Sinon, pour mon problème avec le plugin Xiaomi, aurais-tu une idée stp ?

2 « J'aime »

Je le même problème, dépendance impossible, et j’ai tous mon système d’alrme dessus. C’est inadmissible de payé un plugin est qui ne marche plus et surtout ou il y a aucun suivi.

En même temps, sur ce ton là, personne n’aura envie de vous répondre :wink:

Ouvrez votre propre fil et détaillez le comme cela est demandé sur le forum, le détail doit contenir les informations nécessaires à vous aider à placer entre les mots bonjour et merci !

2 « J'aime »

Bonjour,

Ben si ça fonctionne.

Bienvenu dans le mode de l’Open Source OU CHAQUE PARTICIPANT DOIT ESSAYER D’ŒUVRER POUR LA COMMUNAUTÉ !!

petite question … Combien avez vous payer votre plugin par rapport à une solution clé en main du commerce ?
donc passer sur des solutions du commerce si vous n’êtes pas satisfaits

Et bonjour aussi

Norbert

1 « J'aime »

Bonjour,

Si tu es toujours en vm freebox delta debian 10 cela pourrait expliquer.

akenad :slight_smile:

Hello,

Je pense avoir mis tous les renseignements dans mon ticket initial non ?
(Je suis sur une Jeedom Smart)

Si cette réponse/question m’est destinée, je répondrais que mon post précédent était destiné à Madoss.

akenad :slight_smile:

Pas de soucis. :wink:
Et donc il se passe quoi maintenant ?

Bonjour,

on est plusieurs à avoir le même problème, et j’aimerai bien que quelqu’un se penche sur la question.

Mais je suis du même avis que les autres : c’est un forum d’entraide et la moindre des choses est d’être respectueux envers les autres.

Bonjour, a tous
Je m’excuse mais je ne sais pas trop de quoi j’ai manquer de respect a personne. J’ai juste fait une constatation.
Toujours dans l’impossibilité de l’utiliser, est pas de reponse des service. Mais c’est pas grave.
merci a vous



Salut
Si problème de dépendances, effacer le log, réinstaller les dépendances et donner le nouveau log.

Antoine

Salut, merci du coup de main, 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 '{}' +
++ cut -f 2-
++ awk '$1 <= 4'
+ RESULTTODELETE=
++ sed 's, ,\ ,g'
++ echo ''
+ RESULTTODELETE2=
+ xargs rm -rf
+ echo ''
+ echo 3
+ sudo pip3 cache purge
Files removed: 14
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (24.3.1)
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 pyudev
Collecting pyudev
  Downloading pyudev-0.24.3-py3-none-any.whl.metadata (4.6 kB)
Downloading pyudev-0.24.3-py3-none-any.whl (62 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pyudev
  Attempting uninstall: pyudev
    Found existing installation: pyudev 0.24.3
    Uninstalling pyudev-0.24.3:
      Successfully uninstalled pyudev-0.24.3
Successfully installed pyudev-0.24.3
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 6
+ sudo python3 -m pip install --force-reinstall --upgrade construct
Collecting construct
  Downloading construct-2.10.70-py3-none-any.whl.metadata (4.2 kB)
Downloading construct-2.10.70-py3-none-any.whl (63 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: construct
  Attempting uninstall: construct
    Found existing installation: construct 2.10.70
    Uninstalling construct-2.10.70:
      Successfully uninstalled construct-2.10.70
Successfully installed construct-2.10.70
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 7
+ sudo python3 -m pip install --force-reinstall --upgrade requests
Collecting requests
  Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting charset-normalizer<4,>=2 (from requests)
  Downloading charset_normalizer-3.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests)
  Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests)
  Downloading urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests)
  Downloading certifi-2024.12.14-py3-none-any.whl.metadata (2.3 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading certifi-2024.12.14-py3-none-any.whl (164 kB)
Downloading charset_normalizer-3.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (140 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading urllib3-2.2.3-py3-none-any.whl (126 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.2.3
    Uninstalling urllib3-2.2.3:
      Successfully uninstalled urllib3-2.2.3
  Attempting uninstall: idna
    Found existing installation: idna 3.10
    Uninstalling idna-3.10:
      Successfully uninstalled idna-3.10
  Attempting uninstall: charset-normalizer
    Found existing installation: charset-normalizer 3.4.0
    Uninstalling charset-normalizer-3.4.0:
      Successfully uninstalled charset-normalizer-3.4.0
  Attempting uninstall: certifi
    Found existing installation: certifi 2024.8.30
    Uninstalling certifi-2024.8.30:
      Successfully uninstalled certifi-2024.8.30
  Attempting uninstall: requests
    Found existing installation: requests 2.32.3
    Uninstalling requests-2.32.3:
      Successfully uninstalled requests-2.32.3
Successfully installed certifi-2024.12.14 charset-normalizer-3.4.0 idna-3.10 requests-2.32.3 urllib3-2.2.3
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 8
+ sudo python3 -m pip install --force-reinstall --upgrade pyserial
Collecting pyserial
  Downloading pyserial-3.5-py2.py3-none-any.whl.metadata (1.6 kB)
Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pyserial
  Attempting uninstall: pyserial
    Found existing installation: pyserial 3.5
    Uninstalling pyserial-3.5:
      Successfully uninstalled pyserial-3.5
Successfully installed pyserial-3.5
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 9
+ sudo python3 -m pip install --force-reinstall --upgrade future
Collecting future
  Downloading future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Downloading future-1.0.0-py3-none-any.whl (491 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: future
  Attempting uninstall: future
    Found existing installation: future 1.0.0
    Uninstalling future-1.0.0:
      Successfully uninstalled future-1.0.0
Successfully installed future-1.0.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.
+ echo 10
+ sudo python3 -m pip install --force-reinstall --upgrade pycrypto
Collecting pycrypto
  Downloading pycrypto-2.6.1.tar.gz (446 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "/usr/local/lib/python3.9/dist-packages/setuptools/__init__.py", line 27, in <module>
          from .dist import Distribution
        File "/usr/local/lib/python3.9/dist-packages/setuptools/dist.py", line 30, in <module>
          from . import (
        File "/usr/local/lib/python3.9/dist-packages/setuptools/_entry_points.py", line 45, in <module>
          def validate(eps: metadata.EntryPoints):
      AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ echo 11
+ sudo python3 -m pip install --force-reinstall --upgrade cryptography
Collecting cryptography
  Downloading cryptography-44.0.0-cp39-abi3-manylinux_2_28_aarch64.whl.metadata (5.7 kB)
Collecting cffi>=1.12 (from cryptography)
  Downloading cffi-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.12->cryptography)
  Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Downloading cryptography-44.0.0-cp39-abi3-manylinux_2_28_aarch64.whl (3.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 37.1 MB/s eta 0:00:00
Downloading cffi-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (447 kB)
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pycparser, cffi, cryptography
  Attempting uninstall: pycparser
    Found existing installation: pycparser 2.22
    Uninstalling pycparser-2.22:
      Successfully uninstalled pycparser-2.22
  Attempting uninstall: cffi
    Found existing installation: cffi 1.17.1
    Uninstalling cffi-1.17.1:
      Successfully uninstalled cffi-1.17.1
  Attempting uninstall: cryptography
    Found existing installation: cryptography 43.0.3
    Uninstalling cryptography-43.0.3:
      Successfully uninstalled cryptography-43.0.3
Successfully installed cffi-1.17.1 cryptography-44.0.0 pycparser-2.22
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 12
+ sudo python3 -m pip install --force-reinstall --upgrade enum34
Collecting enum34
  Downloading enum34-1.1.10-py3-none-any.whl.metadata (1.6 kB)
Downloading enum34-1.1.10-py3-none-any.whl (11 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: enum34
  Attempting uninstall: enum34
    Found existing installation: enum34 1.1.10
    Uninstalling enum34-1.1.10:
      Successfully uninstalled enum34-1.1.10
Successfully installed enum34-1.1.10
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 13
+ sudo python3 -m pip install --force-reinstall --upgrade enum-compat
Collecting enum-compat
  Downloading enum_compat-0.0.3-py3-none-any.whl.metadata (954 bytes)
Downloading enum_compat-0.0.3-py3-none-any.whl (1.3 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: enum-compat
  Attempting uninstall: enum-compat
    Found existing installation: enum-compat 0.0.3
    Uninstalling enum-compat-0.0.3:
      Successfully uninstalled enum-compat-0.0.3
Successfully installed enum-compat-0.0.3
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 14
+ sudo python3 -m pip install --force-reinstall --upgrade wheel
Collecting wheel
  Downloading wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
Downloading wheel-0.45.1-py3-none-any.whl (72 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: wheel
  Attempting uninstall: wheel
    Found existing installation: wheel 0.45.1
    Uninstalling wheel-0.45.1:
      Successfully uninstalled wheel-0.45.1
Successfully installed wheel-0.45.1
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 15
+ sudo python3 -m pip install --force-reinstall --upgrade yeelight
Collecting yeelight
  Downloading yeelight-0.7.14-py3-none-any.whl.metadata (10 kB)
Collecting future (from yeelight)
  Using cached future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Collecting ifaddr (from yeelight)
  Downloading ifaddr-0.2.0-py3-none-any.whl.metadata (4.9 kB)
Collecting async-timeout (from yeelight)
  Downloading async_timeout-5.0.1-py3-none-any.whl.metadata (5.1 kB)
Downloading yeelight-0.7.14-py3-none-any.whl (40 kB)
Downloading async_timeout-5.0.1-py3-none-any.whl (6.2 kB)
Using cached future-1.0.0-py3-none-any.whl (491 kB)
Downloading ifaddr-0.2.0-py3-none-any.whl (12 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: ifaddr, future, async-timeout, yeelight
  Attempting uninstall: ifaddr
    Found existing installation: ifaddr 0.2.0
    Uninstalling ifaddr-0.2.0:
      Successfully uninstalled ifaddr-0.2.0
  Attempting uninstall: future
    Found existing installation: future 1.0.0
    Uninstalling future-1.0.0:
      Successfully uninstalled future-1.0.0
  Attempting uninstall: async-timeout
    Found existing installation: async-timeout 5.0.1
    Uninstalling async-timeout-5.0.1:
      Successfully uninstalled async-timeout-5.0.1
  Attempting uninstall: yeelight
    Found existing installation: yeelight 0.7.14
    Uninstalling yeelight-0.7.14:
      Successfully uninstalled yeelight-0.7.14
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.
aiohttp 3.10.10 requires async-timeout<5.0,>=4.0; python_version < "3.11", but you have async-timeout 5.0.1 which is incompatible.
Successfully installed async-timeout-5.0.1 future-1.0.0 ifaddr-0.2.0 yeelight-0.7.14
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 16
+ 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.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.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 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "/usr/local/lib/python3.9/dist-packages/setuptools/__init__.py", line 27, in <module>
          from .dist import Distribution
        File "/usr/local/lib/python3.9/dist-packages/setuptools/dist.py", line 30, in <module>
          from . import (
        File "/usr/local/lib/python3.9/dist-packages/setuptools/_entry_points.py", line 45, in <module>
          def validate(eps: metadata.EntryPoints):
      AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
+ echo 17
+ sudo killall apt apt-get unattended-upgr
apt: no process found
apt-get: no process found
+ sudo rm /var/lib/apt/lists/lock
+ sudo rm /var/cache/apt/archives/lock
+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
+ sudo sudo dpkg --configure -a --force-confdef
+ sudo apt update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:6 http://security.debian.org/debian-security bullseye-security/main Sources [223 kB]
Get:7 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [323 kB]
Get:8 http://security.debian.org/debian-security bullseye-security/main Translation-en [213 kB]
Fetched 879 kB in 4s (200 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ echo 18
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-cryptography

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
python3-cryptography is already the newest version (3.3.2-1+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 19
+ sudo apt install -o Dpkg::Options::=--force-confdef -y libffi-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
libffi-dev is already the newest version (3.3-6).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 20
+ sudo apt install -o Dpkg::Options::=--force-confdef -y libssl-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
libssl-dev is already the newest version (1.1.1w-0+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 21
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end xiaomihome
+ echo 22
+ rm /tmp/jeedom_install_in_progress_xiaomihome
+ echo '*******************End of package installation******************'
*******************End of package installation******************