Erreur installation antenne : Fatal error from pip prevented installation

Bonjour

Suite installation sur Atlas / Debian 11 (*) des 2 plugins : Theengs gateway [tgw] et MQTT Discovery [mqttdiscovery] et la création d’un équipement (antenne locale Bluetooth avec clé USB)

Statut installation de mon équipement [tgw] = NOK et une erreur dans le log ci-dessous
0077|Fatal error from pip prevented installation. Full pip output in file:

Comme je testais avec une vielle clé USB Bluetooth de version inconnue, j’ai pensé que cela pouvait venir de la clé, donc je l’ai changé pour une clé version 4.0. Puis relance de l’installation de l’antenne.
Toujours Statut d’installation de l’antenne = NOK

J’ai maintenant 2 adaptateurs (hci0 et hci1) accessibles dans la conf de cet équipement
(évidemment je n’avais pas noté le premier et je ne sais plus associer hci0 ou hci1 avec mes clés physiques…)
image

1°) d’où peut venir mon pb d’installation de l’antenne
tgw_5_update.txt (6,9 Ko)

2°) Comment reconnaitre le bon adaptateur hci0 ou 1 selon la clé installée
la commande : sudo lsusb n’aide pas
image

(*) L’Atlas est « vierge », fraichement installée en debian 11.8, juste avec :
~ JeeZigbee (z2m), Z-Wave JS (zwavejs) et MQTT Manager (mqtt2) - stable
~ aucun développement applicatif
Je teste pour l’instant en vu de migrer ma Smart

[2024-02-04 08:00:25] *************************************
[2024-02-04 08:00:25] *   Launch install of dependencies  *
[2024-02-04 08:00:25] *************************************
[2024-02-04 08:00:26] Reading package lists...
[2024-02-04 08:00:27] Building dependency tree...
[2024-02-04 08:00:27] Reading state information...
[2024-02-04 08:00:28] curl is already the newest version (7.74.0-1.3+deb11u11).
[2024-02-04 08:00:28] 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     66      0 --:--:-- --:--:-- --:--:--    66
[2024-02-04 08:00:29] Hit:1 http://deb.debian.org/debian bullseye InRelease
[2024-02-04 08:00:29] Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
[2024-02-04 08:00:29] Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
[2024-02-04 08:00:29] Hit:4 http://security.debian.org bullseye-security InRelease
[2024-02-04 08:00:29] Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
[2024-02-04 08:00:29] Hit:6 http://mirrors.xtom.de/armbian buster InRelease
[2024-02-04 08:00:34] Reading package lists...
[2024-02-04 08:00:34] ***************************************
[2024-02-04 08:00:34] *  Install dependencies, venv & pipx  *
[2024-02-04 08:00:34] ***************************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     86      0 --:--:-- --:--:-- --:--:--    86
[2024-02-04 08:00:34] Reading package lists...
[2024-02-04 08:00:35] Building dependency tree...
[2024-02-04 08:00:35] Reading state information...
[2024-02-04 08:00:37] logrotate is already the newest version (3.18.0-2+deb11u2).
[2024-02-04 08:00:37] python3-pip is already the newest version (20.3.4-4+deb11u1).
[2024-02-04 08:00:37] python3 is already the newest version (3.9.2-3).
[2024-02-04 08:00:37] python3-venv is already the newest version (3.9.2-3).
[2024-02-04 08:00:37] 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 24 not upgraded.
Need to get 1037 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.debian.org bullseye-security/main arm64 bluez arm64 5.55-3.1+deb11u1 [1037 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 1037 kB in 0s (5489 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63148 files and directories currently installed.)
Preparing to unpack .../bluez_5.55-3.1+deb11u1_arm64.deb ...
Unpacking bluez (5.55-3.1+deb11u1) over (5.55-3.1+deb11u1) ...
Setting up bluez (5.55-3.1+deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.28-0+deb11u1) ...
[2024-02-04 08:01:06] Version debian:11
[2024-02-04 08:01:06] Install pipx via pip
[2024-02-04 08:01:09] Requirement already satisfied: pipx in /usr/local/lib/python3.9/dist-packages (1.4.3)
[2024-02-04 08:01:09] Requirement already satisfied: tomli in /usr/local/lib/python3.9/dist-packages (from pipx) (2.0.1)
[2024-02-04 08:01:09] Requirement already satisfied: packaging>=20 in /usr/local/lib/python3.9/dist-packages (from pipx) (23.2)
[2024-02-04 08:01:09] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.9/dist-packages (from pipx) (3.2.2)
[2024-02-04 08:01:09] Requirement already satisfied: platformdirs>=2.1 in /usr/local/lib/python3.9/dist-packages (from pipx) (4.2.0)
[2024-02-04 08:01:09] Requirement already satisfied: userpath!=1.9.0,>=1.6 in /usr/local/lib/python3.9/dist-packages (from pipx) (1.9.1)
[2024-02-04 08:01:09] Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from userpath!=1.9.0,>=1.6->pipx) (8.1.7)
[2024-02-04 08:01:10] /root/.local/bin has been been added to PATH, but you need to open a new
[2024-02-04 08:01:10] terminal or re-login for this PATH change to take effect.
[2024-02-04 08:01:10] 
[2024-02-04 08:01:10] You will need to open a new terminal or re-login for the PATH changes to take
[2024-02-04 08:01:10] effect.
[2024-02-04 08:01:10] 
[2024-02-04 08:01:10] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2024-02-04 08:01:10] ****************************
[2024-02-04 08:01:10] *  Install TheengsGateway  *
[2024-02-04 08:01:10] ****************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     83      0 --:--:-- --:--:-- --:--:--    83
creating virtual environment...
installing theengsgateway...
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-02-04_08.01.11_pip_errors.log

pip failed to build package:
    TheengsDecoder

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/TheengsDecoder/_decoder.cpp:2:10: fatal error: Python.h: No such file or directory
Error installing theengsgateway.
[2024-02-04 08:01:52] 
[2024-02-04 08:01:52] ***************************
[2024-02-04 08:01:52] *      Install ended      *
[2024-02-04 08:01:52] ***************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     34      0 --:--:-- --:--:-- --:--:--    33
100     2  100     2    0     0     33      0 --:--:-- --:--:-- --:--:--    33

Salut,

Peux-tu mettre les logs dans un Texte préformaté plutôt qu’un fichier pour que je puisse le consulter?

Et vu l’erreur mentionnée plus haut il faudra regarder le log dans le fichier en question

Concernant la clé il y a plusieurs méthodes expliquées sur le forum.
Une méthode basique qui ne nécessite aucun accès ssh est de débrancher une des deux, actualiser et voir ce qu’il reste dans la liste.

Merci Mips
1°) log renseigné dans msg initial
2°) même avec une seule clé USB banchée physiquement, après redémarrage de l’atlas et création d’un autre équipement antenne : les 2 clés hci0 et hci1 reste dans la liste des adaptateurs possibles

Faudrait donner ce log là

Et un refresh a été fait? Le bouton refresh juste à côté de la liste

A part l’éditeur de fichiers Jeedom je ne sais pas naviguer vers /root, ni transférer ce log sur mon PC.
Incroyable : impossible de trouver sur le web comment faire dans Jeedom ( OS/DB / Administration Système) ou en linux un truc aussi c. que de télécharger un log linux vers PC.
Désolé…

J’ai trouvé cela sur cp mais msg d’erreur dans OS/DB / Administration Système
https://www.malekal.com/copier-des-fichiers-ou-repertoire-dans-un-terminal-sur-linux/

Rien à faire même avec un refresh

image

PS je n’ai strictement rien d’autre branché sur les ports USB
(j’ai enlever la clé Zwave, mon Atlas est equipé d’un contrôleur interne Zigbee)

Mets le log en debug, fait un refresh et montres le log

Entretemp j’ai installé PuTTY
je suis loger sur mon Atlas et dans le répertoire /root/.local/state/pipx/log/

Je bute sur comment télécharger les fichiers du répertoire linux sur mon PC

Bonjour,

Si tu es sous Windows tu peux utiliser WinSCP :

le log en mode debug

3 installations dans le log
adaptateur : « default » puis
adaptateur : « hci0 » et enfin
adaptateur : « hci0 »

0000|[2024-02-04 11:02:13]DEBUG : local exec:hcitool dev | grep hci => 	hci1	B8:13:32:B3:B2:AD
0001|[2024-02-04 11:02:15]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0002|[2024-02-04 11:02:15]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0


0003|[2024-02-04 11:02:15]INFO : Lancement de l'installation de l'antenne 'test'
0004|[2024-02-04 11:02:15]DEBUG : local exec:sudo systemctl stop TheengsGateway.service =>
0005|[2024-02-04 11:02:15]DEBUG : local exec:sudo bash /var/www/html/plugins/tgw/core/class/../../resources/install.sh http://192.168.1.69/plugins/tgw/core/php/jeetgw.php?id=5 > /var/www/html/log/tgw_5_update 2>&1 & =>
0006|[2024-02-04 11:02:18]DEBUG : step:0 for id:5
0007|[2024-02-04 11:02:24]DEBUG : step:1 for id:5
0008|[2024-02-04 11:03:01]DEBUG : step:2 for id:5
0009|[2024-02-04 11:03:45]DEBUG : step:3 for id:5
0010|[2024-02-04 11:03:45]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0011|[2024-02-04 11:03:45]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0
0012|[2024-02-04 11:09:37]DEBUG : local exec:hcitool dev | grep hci => 	hci1	B8:13:32:B3:B2:AD
0013|[2024-02-04 11:09:39]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0014|[2024-02-04 11:09:39]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0
0015|[2024-02-04 11:09:51]INFO : Latest version: 1.3.0
0016|[2024-02-04 11:09:52]DEBUG : local exec:hcitool dev | grep hci => 	hci1	B8:13:32:B3:B2:AD
0017|[2024-02-04 11:09:57]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0018|[2024-02-04 11:09:57]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0



0019|[2024-02-04 11:09:57]INFO : Lancement de l'installation de l'antenne 'test'
0020|[2024-02-04 11:09:57]DEBUG : local exec:sudo systemctl stop TheengsGateway.service =>
0021|[2024-02-04 11:09:57]DEBUG : local exec:sudo bash /var/www/html/plugins/tgw/core/class/../../resources/install.sh http://192.168.1.69/plugins/tgw/core/php/jeetgw.php?id=5 > /var/www/html/log/tgw_5_update 2>&1 & =>
0022|[2024-02-04 11:10:00]DEBUG : step:0 for id:5
0023|[2024-02-04 11:10:06]DEBUG : step:1 for id:5
0024|[2024-02-04 11:10:42]DEBUG : step:2 for id:5
0025|[2024-02-04 11:11:24]DEBUG : step:3 for id:5
0026|[2024-02-04 11:11:24]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0027|[2024-02-04 11:11:24]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0
0028|[2024-02-04 11:11:25]DEBUG : local exec:hcitool dev | grep hci => 	hci1	B8:13:32:B3:B2:AD
0029|[2024-02-04 11:12:02]INFO : Latest version: 1.3.0
0030|[2024-02-04 11:12:02]DEBUG : local exec:hcitool dev | grep hci => 	hci1	B8:13:32:B3:B2:AD
0031|[2024-02-04 11:12:04]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0032|[2024-02-04 11:12:04]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0



0033|[2024-02-04 11:12:04]INFO : Lancement de l'installation de l'antenne 'test'
0034|[2024-02-04 11:12:04]DEBUG : local exec:sudo systemctl stop TheengsGateway.service =>
0035|[2024-02-04 11:12:04]DEBUG : local exec:sudo bash /var/www/html/plugins/tgw/core/class/../../resources/install.sh http://192.168.1.69/plugins/tgw/core/php/jeetgw.php?id=5 > /var/www/html/log/tgw_5_update 2>&1 & =>
0036|[2024-02-04 11:12:07]DEBUG : step:0 for id:5
0037|[2024-02-04 11:12:12]DEBUG : step:1 for id:5
0038|[2024-02-04 11:12:48]DEBUG : step:2 for id:5
0039|[2024-02-04 11:13:31]DEBUG : step:3 for id:5
0040|[2024-02-04 11:13:31]DEBUG : local exec:ls /tmp/ | grep -Ec tgw_install_in_progress => 0
0041|[2024-02-04 11:13:31]DEBUG : local exec:sudo /root/.local/bin/TheengsGateway -h | grep -Ecw "usage:" => 0


Cool WinSCP
mais je bute maintenant sur les droits d’accès, je suis loger [jeedom / Mjeedom96]

Ah oui il faut être en root.
Et par défaut l’accès ssh en root est désactivé sous Debian.

Il faudrait copier via Putty le fichier log dans un répertoire pour lequel l’utilisateur jeedom a les droits.

La commande console c’est cp pour faire ça.

Yeah ! : 3h pour télécharger un p. de log !!!
Merci @Madcow pour la formation Linux for Dummies

cmd_2024-02-04_08.01.11_pip_errors.log

PIP STDOUT
----------
Collecting theengsgateway
  Using cached TheengsGateway-1.3.0-py3-none-any.whl
Collecting bleak>=0.19.0 (from theengsgateway)
  Using cached bleak-0.21.1-py3-none-any.whl.metadata (5.3 kB)
Collecting bluetooth-clocks<1.0 (from theengsgateway)
  Using cached bluetooth_clocks-0.2.0-py3-none-any.whl.metadata (10 kB)
Collecting bluetooth-numbers<2.0,>=1.0 (from theengsgateway)
  Using cached bluetooth_numbers-1.1.1-py3-none-any.whl.metadata (6.6 kB)
Collecting importlib-metadata (from theengsgateway)
  Using cached importlib_metadata-7.0.1-py3-none-any.whl.metadata (4.9 kB)
Collecting paho-mqtt>=1.6.1 (from theengsgateway)
  Using cached paho_mqtt-1.6.1-py3-none-any.whl
Collecting pycryptodomex>=3.18.0 (from theengsgateway)
  Using cached pycryptodomex-3.20.0-cp35-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.4 kB)
Collecting TheengsDecoder>=1.6.4 (from theengsgateway)
  Using cached TheengsDecoder-1.6.8.tar.gz (296 kB)
  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'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting bluetooth-adapters>=0.15.3 (from theengsgateway)
  Using cached bluetooth_adapters-0.17.0-py3-none-any.whl.metadata (5.3 kB)
Collecting async-timeout<5,>=3.0.0 (from bleak>=0.19.0->theengsgateway)
  Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting dbus-fast<3,>=1.83.0 (from bleak>=0.19.0->theengsgateway)
  Using cached dbus_fast-2.21.1-cp39-cp39-manylinux_2_31_aarch64.whl
Collecting typing-extensions>=4.7.0 (from bleak>=0.19.0->theengsgateway)
  Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
Collecting aiohttp>=3.8.1 (from bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached aiohttp-3.9.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (7.4 kB)
Collecting mac-vendor-lookup>=0.1.12 (from bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached mac_vendor_lookup-0.1.12-py3-none-any.whl (350 kB)
Collecting usb-devices>=0.4.5 (from bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached usb_devices-0.4.5-py3-none-any.whl.metadata (5.3 kB)
Collecting zipp>=0.5 (from importlib-metadata->theengsgateway)
  Using cached zipp-3.17.0-py3-none-any.whl.metadata (3.7 kB)
Collecting aiosignal>=1.1.2 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting frozenlist>=1.1.1 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached frozenlist-1.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (12 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached multidict-6.0.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (4.2 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached yarl-1.9.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (31 kB)
Collecting aiofiles (from mac-vendor-lookup>=0.1.12->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Collecting idna>=2.0 (from yarl<2.0,>=1.0->aiohttp>=3.8.1->bluetooth-adapters>=0.15.3->theengsgateway)
  Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Using cached bleak-0.21.1-py3-none-any.whl (137 kB)
Using cached bluetooth_adapters-0.17.0-py3-none-any.whl (19 kB)
Using cached bluetooth_clocks-0.2.0-py3-none-any.whl (20 kB)
Using cached bluetooth_numbers-1.1.1-py3-none-any.whl (474 kB)
Using cached pycryptodomex-3.20.0-cp35-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB)
Using cached importlib_metadata-7.0.1-py3-none-any.whl (23 kB)
Using cached aiohttp-3.9.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB)
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Using cached usb_devices-0.4.5-py3-none-any.whl (5.3 kB)
Using cached zipp-3.17.0-py3-none-any.whl (7.4 kB)
Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
Using cached frozenlist-1.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (239 kB)
Using cached multidict-6.0.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (125 kB)
Using cached yarl-1.9.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (300 kB)
Using cached aiofiles-23.2.1-py3-none-any.whl (15 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Building wheels for collected packages: TheengsDecoder
  Building wheel for TheengsDecoder (pyproject.toml): started
  Building wheel for TheengsDecoder (pyproject.toml): finished with status 'error'
Failed to build TheengsDecoder

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × Building wheel for TheengsDecoder (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [125 lines of output]
      WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
      
      
      --------------------------------------------------------------------------------
      -- Trying 'Ninja' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.
      
        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.
      
      Not searching for unused variables given on the command line.
      
      -- The C compiler identification is GNU 10.2.1
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is GNU 10.2.1
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done (1.1s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/_cmake_test_compile/build
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja' generator - success
      --------------------------------------------------------------------------------
      
      Configuring Project
        Working directory:
          /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/_skbuild/linux-aarch64-3.9/cmake-build
        Command:
          /tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9 -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/_skbuild/linux-aarch64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.2 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/root/.local/share/pipx/venvs/theengsgateway/bin/python -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPython_EXECUTABLE:PATH=/root/.local/share/pipx/venvs/theengsgateway/bin/python -DPython_ROOT_DIR:PATH=/root/.local/share/pipx/venvs/theengsgateway -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPython3_EXECUTABLE:PATH=/root/.local/share/pipx/venvs/theengsgateway/bin/python -DPython3_ROOT_DIR:PATH=/root/.local/share/pipx/venvs/theengsgateway -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.9 -DCMAKE_MAKE_PROGRAM:FILEPATH=/tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/ninja/data/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release
      
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.
      
        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.
      
      Not searching for unused variables given on the command line.
      
      -- The C compiler identification is GNU 10.2.1
      -- The CXX compiler identification is GNU 10.2.1
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Warning (dev) at /tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package):
        Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
        are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
        the cmake_policy command to set the policy and suppress this warning.
      
      Call Stack (most recent call first):
        CMakeLists.txt:4 (find_package)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Found PythonInterp: /root/.local/share/pipx/venvs/theengsgateway/bin/python (found version "3.9.2")
      CMake Warning (dev) at /tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:248 (find_package):
        Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
        are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
        the cmake_policy command to set the policy and suppress this warning.
      
      Call Stack (most recent call first):
        CMakeLists.txt:4 (find_package)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      -- Found PythonLibs: no-library-required
      _modinit_prefix:PyInit_
      -- Configuring done (1.7s)
      -- Generating done (0.0s)
      -- Build files have been written to: /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/_skbuild/linux-aarch64-3.9/cmake-build
      [1/4] Building CXX object CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o
      FAILED: CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o
      /usr/bin/c++ -D_decoder_EXPORTS -I/usr/include/python3.9 -I/tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/src/arduino_json/src -I/tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/src -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o -MF CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o.d -o CMakeFiles/_decoder.dir/TheengsDecoder/_decoder.cpp.o -c /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/TheengsDecoder/_decoder.cpp
      /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/TheengsDecoder/_decoder.cpp:2:10: fatal error: Python.h: No such file or directory
          2 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      [2/4] Building CXX object CMakeFiles/_decoder.dir/src/decoder.cpp.o
      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "/tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
          cmkr.make(make_args, install_target=cmake_install_target, env=env)
        File "/tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 697, in make
          self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
        File "/tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 742, in make_impl
          raise SKBuildError(msg)
      
      An error occurred while building with CMake.
        Command:
          /tmp/pip-build-env-rdxm47ha/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
        Install target:
          install
        Source directory:
          /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9
        Working directory:
          /tmp/pip-install-e06kbb8v/theengsdecoder_528c1c4698624bed8a799baf1f1390b9/_skbuild/linux-aarch64-3.9/cmake-build
      Please check the install target is valid and see CMake's output for more information.
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for TheengsDecoder
ERROR: Could not build wheels for TheengsDecoder, which is required to install pyproject.toml-based projects

@Mips
Pourrait on avoir les logs d’installation des antennes dans un répertoire accessible au commun des mortels.
Dans l’arborescence du plugin [tgw] par exemple
image

Ce n’est pas des installations qu’il faut faire pour la liste des adaptateurs mais juste un refresh.

Ceci dit dans le log on voit un hci1 mais pas de hci0.

  • donc le bon c’est hci1
  • par contre je ne comprends pas pq il reste en hci1 et qu’il ne prend pas la place hci0 => c’est peut-être pour ca que le plugin « garde en mémoire » le hci0 initial; je vais vérifier ce point.

Ils le sont déjà directement dans les logs jeedom comme tous les logs. Ce sont les logs dont le nom termine par _update.

Et donc ce que tu as téléchargé là n’est pas généré pas le plugin mais par pip directement, ca serait le cas avec n’importe quelle installation de dépendances. Je n’ai aucune influence la dessus.

@Mips : de quel mode « debug » parles tu ?

A) Celui de l’équipement : « Niveau de log »
C’est pas commun de choisir le niveau de log dans l’équipement lui même…

B) ou celui du plugin Theengs Gateway (tgw) : « Logs et Surveillance »

Nouvelle tentative

  • après « Désinstaller l’antenne » (qui n’a jamais été créée à priori) de l’équipement précédent (ID 5)
  • suppression de l’équipement précédent
  • création d’un nouvel équipement (ID 8)
  • avec le choix de l’adaptateur hci1
  • avec « Niveau de log » dans ce nouvel équipement à « Debug »
  • et lancement de « Installer l’antenne »

Pas mieux
image

Le log « tgw_8_update »

[2024-02-04 14:52:40] *************************************
[2024-02-04 14:52:40] *   Launch install of dependencies  *
[2024-02-04 14:52:40] *************************************
[2024-02-04 14:52:40] Reading package lists...
[2024-02-04 14:52:41] Building dependency tree...
[2024-02-04 14:52:41] Reading state information...
[2024-02-04 14:52:43] curl is already the newest version (7.74.0-1.3+deb11u11).
[2024-02-04 14:52:43] 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     40      0 --:--:-- --:--:-- --:--:--    41
[2024-02-04 14:52:43] Hit:1 http://deb.debian.org/debian bullseye InRelease
[2024-02-04 14:52:43] Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
[2024-02-04 14:52:43] Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
[2024-02-04 14:52:43] Get:4 http://security.debian.org bullseye-security InRelease [48.4 kB]
[2024-02-04 14:52:43] Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
[2024-02-04 14:52:44] Hit:6 http://armbian.systemonachip.net/apt buster InRelease
[2024-02-04 14:52:46] Fetched 48.4 kB in 2s (20.4 kB/s)
[2024-02-04 14:52:49] Reading package lists...
[2024-02-04 14:52:49] ***************************************
[2024-02-04 14:52:49] *  Install dependencies, venv & pipx  *
[2024-02-04 14:52:49] ***************************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     76      0 --:--:-- --:--:-- --:--:--    80
[2024-02-04 14:52:49] Reading package lists...
[2024-02-04 14:52:50] Building dependency tree...
[2024-02-04 14:52:50] Reading state information...
[2024-02-04 14:52:52] logrotate is already the newest version (3.18.0-2+deb11u2).
[2024-02-04 14:52:52] python3-pip is already the newest version (20.3.4-4+deb11u1).
[2024-02-04 14:52:52] python3 is already the newest version (3.9.2-3).
[2024-02-04 14:52:52] python3-venv is already the newest version (3.9.2-3).
[2024-02-04 14:52:52] 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 24 not upgraded.
Need to get 1037 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.debian.org bullseye-security/main arm64 bluez arm64 5.55-3.1+deb11u1 [1037 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 1037 kB in 0s (6021 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63148 files and directories currently installed.)
Preparing to unpack .../bluez_5.55-3.1+deb11u1_arm64.deb ...
Unpacking bluez (5.55-3.1+deb11u1) over (5.55-3.1+deb11u1) ...
Setting up bluez (5.55-3.1+deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.28-0+deb11u1) ...
[2024-02-04 14:53:23] Version debian:11
[2024-02-04 14:53:23] Install pipx via pip
[2024-02-04 14:53:26] Requirement already satisfied: pipx in /usr/local/lib/python3.9/dist-packages (1.4.3)
[2024-02-04 14:53:26] Requirement already satisfied: userpath!=1.9.0,>=1.6 in /usr/local/lib/python3.9/dist-packages (from pipx) (1.9.1)
[2024-02-04 14:53:26] Requirement already satisfied: tomli in /usr/local/lib/python3.9/dist-packages (from pipx) (2.0.1)
[2024-02-04 14:53:26] Requirement already satisfied: argcomplete>=1.9.4 in /usr/local/lib/python3.9/dist-packages (from pipx) (3.2.2)
[2024-02-04 14:53:26] Requirement already satisfied: packaging>=20 in /usr/local/lib/python3.9/dist-packages (from pipx) (23.2)
[2024-02-04 14:53:26] Requirement already satisfied: platformdirs>=2.1 in /usr/local/lib/python3.9/dist-packages (from pipx) (4.2.0)
[2024-02-04 14:53:26] Requirement already satisfied: click in /usr/local/lib/python3.9/dist-packages (from userpath!=1.9.0,>=1.6->pipx) (8.1.7)
[2024-02-04 14:53:27] /root/.local/bin has been been added to PATH, but you need to open a new
[2024-02-04 14:53:27] terminal or re-login for this PATH change to take effect.
[2024-02-04 14:53:27] 
[2024-02-04 14:53:27] You will need to open a new terminal or re-login for the PATH changes to take
[2024-02-04 14:53:27] effect.
[2024-02-04 14:53:27] 
[2024-02-04 14:53:27] Otherwise pipx is ready to go! ✨ 🌟 ✨
[2024-02-04 14:53:27] ****************************
[2024-02-04 14:53:27] *  Install TheengsGateway  *
[2024-02-04 14:53:27] ****************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     76      0 --:--:-- --:--:-- --:--:--    80
creating virtual environment...
installing theengsgateway...
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-02-04_14.53.28_pip_errors.log

pip failed to build package:
    TheengsDecoder

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    /tmp/pip-install-z39_k7ls/theengsdecoder_11b91659aef14d60aa94cdce95d3f351/TheengsDecoder/_decoder.cpp:2:10: fatal error: Python.h: No such file or directory
Error installing theengsgateway.
[2024-02-04 14:54:12] 
[2024-02-04 14:54:12] ***************************
[2024-02-04 14:54:12] *      Install ended      *
[2024-02-04 14:54:12] ***************************
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     2  100     2    0     0     33      0 --:--:-- --:--:-- --:--:--    33

Ah et sachant que c’est une antenne avec TheengsGW, qui peut être distante, tu veux le gérer comment ?
Donc entre le demon d’un plugin local a jeedom, et ce qui peut tourner en déporté il faut bien un moyen de trouver a mettre des logs en place

Il y a les logs du plugin. Eux sont gérés dans les règles de l’art de jeedom et suivent donc la logique jeedom.

D’autre part ce plugin offre une interface graphique pour gérer la config et l’installation de l’application « theengs gateway » et un des paramètres de cette application c’est le niveau de log.


Sinon on mélange deux conversations ici ce qui n’aide pas à se comprendre:

  1. Le problème d’affichage des adaptateurs bluetooth => pour ca je parlais de mettre le log du plugin en debug, de faire uniquement un refresh de la liste (pas une install, rien d’autre que le refresh) et de me montrer le log (btw le log de l’antenne, de theengsgateway, lui peut rester sur warning)
  2. Le problème d’installation dû au crash de pip sur le système