SwitchBot dépendance

Bonjour
J’ai une erreur sur l’instalation de dépendance de SwitchBot

********************************************************
*             Installation des dépendances             *
********************************************************
***** Commande: sudo apt-get update **********
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Reading package lists...
***** Commande: sudo apt-get install -y python3  python3-pip **********
Reading package lists...
Building dependency tree...
Reading state information...
python3 is already the newest version (3.11.2-1+b1).
python3-pip is already the newest version (23.0.1+dfsg-1).
The following packages were automatically installed and are no longer required:
g++-10 guile-2.2-libs libaio1 libaom0 libatk1.0-data libavcodec58
libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56 libcbor0
libcodec2-0.9 libdav1d4 libevent-core-2.1-7 libevent-pthreads-2.1-7
libfftw3-double3 libfl2 libflac8 libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0
libicu67 libidn11 libigdgmm11 libimobiledevice6 libjim0.79 libjsoncpp24
libldap-2.4-2 libllvm11 libmpdec3 libopts25 libpcre16-3 libpcre2-posix2
libpcre3-dev libpcre32-3 libpcrecpp0v5 libperl5.32 libplist3 libpostproc55
libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib
librest-0.7-0 libsoup-gnome2.4-1 libsoup2.4-1 libsoup2.4-common
libsrt1.4-gnutls libstdc++-10-dev libswresample3 libswscale5 libu2f-udev
libupsclient4 liburing1 libusb-0.1-4 libusbmuxd6 libvpx6 libwavpack1
libwebpdemux2 libx264-160 libx265-192 linux-image-5.10.0-28-amd64
linux-image-5.10.0-29-amd64 mariadb-server-10.5 perl-modules-5.32
python3-distro-info python3.9 python3.9-dev python3.9-minimal sntp telnet
unattended-upgrades usbmuxd
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.
***** Commande: sudo pip3 install requests **********
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
***** Commande: sudo pip3 install bluepy **********
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
********************************************************
*             Installation terminée                    *

Avez vous une idée ?

Bonjour

De toute évidence ce plugin n’est pas xompatible d3bian 12. Testez la version beta au cas ou mais je n’y crois pas car la gestion python semble à revoir.

Etonnant votre ligne python 2.7 pour une installation debian 12.

plugin-switchbotcloud semble ok sous debian 12.

Antoine

merci Antoine de ton retour, j’ai déjà testé la beta.
plugin-switchbotcloud demande un équipement réseau hub de plus donc…
je peux faire quelques modif à la main ?

vu les dépendances utilisées et la façon dont elles sont installées pour l’instant, il faut déjà de bonne connaissances pour réaliser les changements; autrement dit, non je ne pense pas.

de plus la lib bluepy est utilisé, cette lib n’est plus maintenue depuis des années et incompatible python > 3.4 donc il y a probablement un (gros) travail de refactoring du démon du plugin à effectuer.

=> c’est mort

sniff, merci de ton retour