Echec d'activation du plugin-switchbot

Bonjour,

J’ai un problème d’installation du plugin switchbot, que je viens d’acheter.

Voici les étapes suivies :

Cause ou conséquence, je ne sais pas, mais je note que ma clé bluetooth n’est pas proposée dans la configuration du plugin :

Pas (encore) de plugin BLEA.

Ma config :
Jeedom 4.1.22
VM Debian Buster sur Synology

Voici le log du plugin :

********************************************************
*             Installation des dépendances             *
********************************************************
***** Commande: sudo apt-get update **********
Atteint :1 http://deb.debian.org/debian buster InRelease
Réception de :2 http://security.debian.org/debian-security buster/updates InRelease [65,4 kB]
Réception de :3 http://deb.debian.org/debian buster-updates InRelease [51,9 kB]
Atteint :4 https://deb.nodesource.com/node_14.x buster InRelease
Réception de :5 http://security.debian.org/debian-security buster/updates/main Sources [180 kB]
Réception de :6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [272 kB]
569 ko réceptionnés en 1s (620 ko/s)
Lecture des listes de paquets…
***** Commande: sudo apt-get install -y python3  python3-pip **********
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
python3-pip est déjà la version la plus récente (18.1-5).
python3 est déjà la version la plus récente (3.7.3-1).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
apcupsd-doc python3-asn1crypto python3-cffi-backend python3-entrypoints
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 9 non mis à jour.
***** Commande: sudo pip3 install requests **********
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
***** Commande: sudo pip3 install bluepy **********
Collecting bluepy
Downloading https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e/bluepy-1.3.0.tar.gz (217kB)
Building wheels for collected packages: bluepy
Running setup.py bdist_wheel for bluepy: started
Running setup.py bdist_wheel for bluepy: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-joit_phq/bluepy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-qj7mu1wm --python-tag cp37:
running bdist_wheel
running build
running build_py
Working dir is /tmp/pip-install-joit_phq/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
Failed to compile bluepy-helper. Exiting install.
Command was 'make -C bluepy -j1' in /tmp/pip-install-joit_phq/bluepy
Return code was 2
Output was:
b"make\xc2\xa0: on entre dans le r\xc3\xa9pertoire \xc2\xab\xc2\xa0/tmp/pip-install-joit_phq/bluepy/bluepy\xc2\xa0\xc2\xbb
tar xzf bluez-src.tgz
touch ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
cc -L. -g -Wall  -Os -DHAVE_CONFIG_H -I./bluez-5.47/attrib -I./bluez-5.47 -I./bluez-5.47/lib -I./bluez-5.47/src -I./bluez-5.47/gdbus -I./bluez-5.47/btio -I./bluez-5.47/sys  -o bluepy-helper bluepy-helper.c ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c
bluepy-helper.c:33:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/att.c:33:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/gatt.c:32:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/gattrib.c:34:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/utils.c:30:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/btio/btio.c:37:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/src/log.c:38:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/src/shared/io-glib.c:30:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/src/shared/timeout-glib.c:22:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
make: *** [Makefile:30: bluepy-helper] Error 1
make\xc2\xa0: on quitte le r\xc3\xa9pertoire \xc2\xab\xc2\xa0/tmp/pip-install-joit_phq/bluepy/bluepy\xc2\xa0\xc2\xbb
"
----------------------------------------
Failed building wheel for bluepy
Running setup.py clean for bluepy
Failed to build bluepy
Installing collected packages: bluepy
Running setup.py install for bluepy: started
Running setup.py install for bluepy: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-joit_phq/bluepy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jutypbqn/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
Working dir is /tmp/pip-install-joit_phq/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
Failed to compile bluepy-helper. Exiting install.
Command was 'make -C bluepy -j1' in /tmp/pip-install-joit_phq/bluepy
Return code was 2
Output was:
b"make\xc2\xa0: on entre dans le r\xc3\xa9pertoire \xc2\xab\xc2\xa0/tmp/pip-install-joit_phq/bluepy/bluepy\xc2\xa0\xc2\xbb
tar xzf bluez-src.tgz
touch ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
cc -L. -g -Wall  -Os -DHAVE_CONFIG_H -I./bluez-5.47/attrib -I./bluez-5.47 -I./bluez-5.47/lib -I./bluez-5.47/src -I./bluez-5.47/gdbus -I./bluez-5.47/btio -I./bluez-5.47/sys  -o bluepy-helper bluepy-helper.c ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c
bluepy-helper.c:33:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/att.c:33:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/gatt.c:32:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/gattrib.c:34:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/attrib/utils.c:30:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/btio/btio.c:37:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/src/log.c:38:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/src/shared/io-glib.c:30:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
./bluez-5.47/src/shared/timeout-glib.c:22:10: fatal error: glib.h: Aucun fichier ou dossier de ce type
#include <glib.h>
^~~~~~~~
compilation terminated.
make: *** [Makefile:30: bluepy-helper] Error 1
make\xc2\xa0: on quitte le r\xc3\xa9pertoire \xc2\xab\xc2\xa0/tmp/pip-install-joit_phq/bluepy/bluepy\xc2\xa0\xc2\xbb
"
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-joit_phq/bluepy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jutypbqn/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-joit_phq/bluepy/
********************************************************
*             Installation terminée                    *
********************************************************

Merci de votre aide !

J’ai aussi essayé :

  • de relancer l’installation des dépendances => NOK
  • de désinstaller le plugin, de le réinstaller en beta, puis d’installer les dépendances => OK
    mais toujours pas de contrôleur bluetooth proposé :

J’ai lancé, un peu au pif, cette commande :

sudo apt-get install bluetooth bluez

La clé est maintenant détectée :

Et maintenant tout fonctionne !

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.