Page 1 sur 4

[Résolu]- Problème python Domoticz Docker synology

Publié : 27 oct. 2022, 23:11
par lecanard38
Bonjour,
J'essaie en vain de faire fonctionner le plugin Zigate mais j'ai toujours une erreur :

Code : Tout sélectionner

2022-10-27 23:06:06.978 zgate: onStop()
2022-10-27 23:06:06.978 Status: zgate: Stop directive received.
2022-10-27 23:06:07.052 Status: zgate: Exiting work loop.
2022-10-27 23:06:07.078 Status: zgate: Stopping threads.
2022-10-27 23:06:07.078 Status: zgate: Stopped.
2022-10-27 23:06:14.423 zgate: Worker thread started.
2022-10-27 23:06:14.873 zgate: Zigbee for Domoticz plugin started!
2022-10-27 23:06:14.881 zgate: onStop()
2022-10-27 23:06:14.423 Status: zgate: Entering work loop.
2022-10-27 23:06:14.423 Status: zgate: Started.
2022-10-27 23:06:14.872 Status: zgate: Initialized version 6.3, author 'pipiche38'
2022-10-27 23:06:14.873 Status: zgate: Checking Python modules /opt/domoticz/userdata/plugins/Domoticz-Zigate/requirements.txt
2022-10-27 23:06:14.744 Error: PyDomoticz_Error, illegal operation, Plugin has not started yet.
2022-10-27 23:06:14.881 Error: zgate: Looks like aiohttp python module is not installed. Make sure to install the required python3 module
2022-10-27 23:06:14.881 Error: zgate: Use the command:
2022-10-27 23:06:14.881 Error: zgate: sudo pip3 install -r requirements.txt
J'ai bien python installé, j'ai fais la commande conseillée dans le log : zgate: sudo pip3 install -r requirements.txt

Je baisse les bras .... Si une âme charitable peu me dépanner.

Re: Problème python Domoticz Docker synology

Publié : 28 oct. 2022, 17:45
par Deufo
Quel est le résultat de la commande précédente ?
De mémoire, lorsque j'ai écris le tuto du wiki, l'image ne contenait pas sudo.

Re: Problème python Domoticz Docker synology

Publié : 28 oct. 2022, 17:59
par Keros
@deufo, on a cette ligne dans le wiki :
Cette procédure n’est pas encore mise à jour pour être compatible avec la version 6 du plugin.
On ne l'a pas remis à jour avec les modules pythons complémentaires. Tu aurais la possibilité d'y regarder ?

Re: Problème python Domoticz Docker synology

Publié : 28 oct. 2022, 19:12
par lecanard38
Bonjour et merci pour vos retours.
La commande passe bien sans erreurs.
J'ai l'impression qu'il y a une embrouille avec les versions de python. Sur le nas lorsque je demande ma version de python il me dit 3.8.
Sur domoticz lorsque je fait about il me dit 3.7.
Je ne sais pas si ça à une incidence...
Malheureusement je pars demain en déplacement à l'étranger. J'amène un PC donc je pourrais avoir au moins les log domoticz.
Ça va être plus compliqué pour le nas en ssh.
S'il le faut j'ouvrirais une redirection port 22.
En tout cas merci encore pour votre implication

Re: Problème python Domoticz Docker synology

Publié : 28 oct. 2022, 20:35
par Keros
Si c'est uniquement pour nous, ne fais pas de redirection du port 22, ce n'est pas très sécure ;)

Re: Problème python Domoticz Docker synology

Publié : 28 oct. 2022, 22:36
par lecanard38
Oui je sais mais je recherche de l'aide donc si c'est utile pour vous , je me mets à disposition. C'est la moindre des choses.

Re: Problème python Domoticz Docker synology

Publié : 29 oct. 2022, 00:02
par Deufo
Les commandes sont à entrer côté docker pas sur le nas !
L'interface web suffit donc. Essaie de regarder le wiki, il doit y avoir un passage pour python-dev.
Je suis à l'étranger pour le WE donc pas très réactif.

Re: Problème python Domoticz Docker synology

Publié : 31 oct. 2022, 10:23
par lecanard38
Bonjour,
en tapant la commande dans le docker, j'ai un message d'erreur à la fin :

Code : Tout sélectionner

t -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libff
i -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-37/c/_cffi_backend.o                               
      error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory: 'x86_64-linux-gnu-gcc'                                  
                                                                                                                                       
      ----------------------------------------                                                                                         
  Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1pjlaq_i/cffi/setup.py';f=getattr(tokenize, '
open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-r
ecord-upyvm731/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-dviju5x_ --compile" failed with error
 code 1 in /tmp/pip-install-1pjlaq_i/cffi/                                                                                             
                                                                                                                                       
  ----------------------------------------                                                                                             
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-dviju5x_ --no-warn-script-location --
no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0,!=60.9.0 wheel "cffi>=1.12; platform_python_impl
ementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None                                                        
Par contre je tape cette commande : sudo pip3 install -r requirements.txt mais sans le sudo.
Avec sudo j'ai commande inconnue.

Re: Problème python Domoticz Docker synology

Publié : 01 nov. 2022, 09:42
par pipiche
la remarque de @deufo etait:

as-tu le module python-dev installé ?

Tu as également des infos ici, en ce qui concerne le plugin et docker
https://github.com/zigbeefordomoticz/wi ... -on-docker

Re: Problème python Domoticz Docker synology

Publié : 01 nov. 2022, 12:06
par lecanard38
C'est justement ce que je voudrais vérifier mais je ne sais pas comment. J'ai installer domoticz avec l'image officielle toute faite.