Installation des dépendances impossible: "E: dpkg was interrupted"

Bonjour @ tous,

Jeedom tourne chez moi sur une Smart et Debian 10.13. Je n’arrive pas a installer les dépendances de ce plugin. J’ai essayé de chercher par moi même une solution sur le forum mais je suis un peu perdu.

J’ai copié les logs lors de l’installation (ci-dessous), est-ce que ces informations suffisent pour que quelqu’un puisse m’aider a trouver une solution ?

Merci par avance pour vos réponses :slightly_smiling_face:

Launch install of googlecast dependancies
-- Current OS version :
Description:	Debian GNU/Linux 10 (buster)
-- Updating repo...
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Hit:3 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:4 https://deb.nodesource.com/node_16.x buster InRelease
Hit:5 http://www.deb-multimedia.org buster InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Fetched 122 kB in 6s (22.1 kB/s)
Reading package lists...
-- Installation of python3 and dependancies
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
-- Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
-- Installation of pip for python3 and necessary libraries
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
-- Installation of audio sox library
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
-- Installation of TTS libraries
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
-- Installation of libav/ffmpeg libraries
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
-- Upgrade setuptools with command pip3.4 if not up to date
Requirement already satisfied (use --upgrade to upgrade): setuptools>=42.0.0 in /usr/local/lib/python2.7/dist-packages
Cleaning up...
-- Installed version of pip :
pip 1.5.6 from /usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg (python 2.7)
-- Installation of python library 'requests' with command pip3.4
Requirement already satisfied (use --upgrade to upgrade): requests>=2.21.0 in /usr/local/lib/python2.7/dist-packages
Cleaning up...
-- Installation of python library 'protobuf' with command pip3.4
Requirement already satisfied (use --upgrade to upgrade): protobuf>=3.11.0 in /usr/local/lib/python2.7/dist-packages
Cleaning up...
-- Installation of python library 'zeroconf' with command pip3.4
Requirement already satisfied (use --upgrade to upgrade): zeroconf>=0.25.1 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): ifaddr>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from zeroconf>=0.25.1)
Cleaning up...
-- Installation of python library 'click, bs4 and six' for TTS with command pip3.4
Downloading/unpacking click
pip can't proceed with requirement 'click' due to a pre-existing build directory.
location: /tmp/pip_build_root/click
This is likely due to a previous installation that failed.
pip is being responsible and not assuming it can delete this.
Please delete it and try again.
Storing debug log for failure in /root/.pip/pip.log
-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.4
Downloading/unpacking tqdm
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1265, in prepare_files
req_to_install.extras):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2291, in requires
dm = self._dep_map
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2484, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2517, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2514, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/_markerlib/markers.py", line 113, in marker_fn
return eval(compiled_marker, environment)
File "", line 1, in 
NameError: name 'platform_system' is not defined
Storing debug log for failure in /root/.pip/pip.log
-- Installation of dependencies is done !

Salut

As-tu fait ce qui est demandé dans le log?

Antoine

1 « J'aime »

Quand je tape cette ligne de commande dans « administration système » (dans l’onglet « réglage > système > configuration »), il y a un tout petit temps de chargement, puis rien n’apparait…

Bonjour,

Et vous avez cliqué sur « ok » à droite après ?

Oui oui j’ai bien appuyé sur « Ok », ensuite, ça charge quelques secondes mais rien ne se passe / rien ne s’écrit dans la fenêtre du dessous

Est-ce qu’une réinitialisation d’usine de ma Smart règlerait le problème ?

Peut être mais c’est un peu extrême comme solution.

Essayer de réinstaller les dépendances, pour voir si le message reste le même.

Vous pouvez aussi passer la commande directement depuis une console ssh.

Antoine

En faite, j’utilisais beaucoup ce plugin.

Puis un jour, j’ai voulu tout remettre a plat mon installation domotique, vu que depuis 6 ans, je fesais un peu tout et n’importe quoi dessus. Le plugin marchait bien.

J’ai réinitialisé d’usine ma Smart, et reconfigurer tous mes équipements. Ca fait déjà plusieurs semaines.

Depuis, ce plugin ne veut plus s’installer. J’ai réessayé des 10ènes de fois d’installer les dépendances. Ca ne fonctionne pas.

Redémarrez la smart alors, cela devrait débloquer la situation.
Ne faite pas de reset, il y a d’autres solutions

Une autre piste: dans ce même écran vous pouvez cliquer sur la commande de la première ligne dans la colonne de gauche « fix dpkg », ensuite ok de nouveau je pense (je ne sais plus si c’est automatique ou non)

Edit : ou celle en dessous « dpkg configure » faudrait que je vérifie la commande exécutée

J’avais déjà essayé le redémarrage, je viens de re-essayer (on sait jamais) et ça ne fonctionne toujours pas, les même messages d’erreurs apparaissent

Avec « fix dpkg », rien ne se passe.

Avec « dpkg configure », j’ai ce message :

warning: commands will be executed using /bin/sh
job 47621 at Sun Jan 22 13:33:00 2023

Bonjour @ tous,

Après quelques manipulations, je pense que ma situation c’est améliorer (moins de messages d’erreurs), mais le plugin ne veut toujours pas s’installer…

Voici le code pendant l’installation :

Launch install of googlecast dependancies
-- Current OS version :
Description:	Debian GNU/Linux 10 (buster)
-- Updating repo...
Get:1 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://www.deb-multimedia.org buster InRelease
Hit:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Fetched 122 kB in 3s (36.5 kB/s)
Reading package lists...
-- Installation of python3 and dependancies
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
-- Installation of pip for python3 and necessary libraries
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
python3-dev is already the newest version (3.7.3-1).
python-requests is already the newest version (2.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of audio sox library
Reading package lists...
Building dependency tree...
Reading state information...
sox is already the newest version (14.4.2+git20190427-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of TTS libraries
Reading package lists...
Building dependency tree...
Reading state information...
libttspico-utils is already the newest version (1.0+git20130326-9).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of libav/ffmpeg libraries
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.10-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Upgrade setuptools with command pip3.4 if not up to date
-- Installed version of pip :
pip 1.5.6 from /usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg (python 2.7)
-- Installation of python library 'requests' with command pip3.4
Requirement already satisfied (use --upgrade to upgrade): requests>=2.21.0 in /usr/local/lib/python2.7/dist-packages
Cleaning up...
-- Installation of python library 'protobuf' with command pip3.4
Requirement already satisfied (use --upgrade to upgrade): protobuf>=3.11.0 in /usr/local/lib/python2.7/dist-packages
Cleaning up...
-- Installation of python library 'zeroconf' with command pip3.4
Requirement already satisfied (use --upgrade to upgrade): zeroconf==0.31.0 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): ifaddr>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from zeroconf==0.31.0)
Cleaning up...
-- Installation of python library 'click, bs4 and six' for TTS with command pip3.4
Downloading/unpacking click
Running setup.py (path:/tmp/pip_build_root/click/setup.py) egg_info for package click
Traceback (most recent call last):
File "", line 17, in 
File "/tmp/pip_build_root/click/setup.py", line 7, in 
"importlib-metadata; python_version < '3.8'",
File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 162, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 124, in setup
dist.parse_config_files()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 702, in parse_config_files
ignore_option_errors=ignore_option_errors)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 121, in parse_configuration
meta.parse()
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 426, in parse
section_parser_method(section_options)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 399, in parse_section
self[name] = value
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 184, in __setitem__
value = parser(value)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 515, in _parse_version
version = self._parse_attr(value, self.package_dir)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 349, in _parse_attr
module = import_module(module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/tmp/pip_build_root/click/src/click/__init__.py", line 7, in 
from .core import Argument as Argument
File "/tmp/pip_build_root/click/src/click/core.py", line 49
ctx: "Context", incomplete: str
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 17, in 
File "/tmp/pip_build_root/click/setup.py", line 7, in 
"importlib-metadata; python_version < '3.8'",
File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 162, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 124, in setup
dist.parse_config_files()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 702, in parse_config_files
ignore_option_errors=ignore_option_errors)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 121, in parse_configuration
meta.parse()
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 426, in parse
section_parser_method(section_options)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 399, in parse_section
self[name] = value
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 184, in __setitem__
value = parser(value)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 515, in _parse_version
version = self._parse_attr(value, self.package_dir)
File "/usr/local/lib/python2.7/dist-packages/setuptools/config.py", line 349, in _parse_attr
module = import_module(module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/tmp/pip_build_root/click/src/click/__init__.py", line 7, in 
from .core import Argument as Argument
File "/tmp/pip_build_root/click/src/click/core.py", line 49
ctx: "Context", incomplete: str
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/click
Storing debug log for failure in /root/.pip/pip.log
-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.4
Downloading/unpacking tqdm
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1265, in prepare_files
req_to_install.extras):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2291, in requires
dm = self._dep_map
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2484, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2517, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 2514, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/_vendor/_markerlib/markers.py", line 113, in marker_fn
return eval(compiled_marker, environment)
File "", line 1, in 
NameError: name 'platform_system' is not defined
Storing debug log for failure in /root/.pip/pip.log
-- Installation of dependencies is done !

Quelqu’un aurait-il une idée pour m’aider svp ?

Qu’avez-vous fait exactement?

car à présent il y a un conflit entre python2 & python3 & pip => ce n’est pas bon

Alors là… j’ai fait une recherche sur internet avec les termes indiqués dans le log qui posaient problèmes et j’ai les ai lancé des lignes de commandes en SSH. Je ne pourrais pas être plus précis parce que j’avoue avoir un peu essayer des choses sans bien comprendre moi même…

Il y a possibilité de tous effacer (python 2 & 3 & pip) et faire une installation propre ?

EDIT : j’ai demandé a ChatGPT le problème du code des logs, voici sa réponse (ça reste vague pour moi mais peut être pas pour tout le monde) :

ChatGPT : Il semble y avoir un problème lors de l’installation de la bibliothèque « click » pour TTS avec la commande pip3.4. Il y a une trace d’erreur « Traceback (most recent call last): » et une exception "File "/tmp/pip_build_root/click/setup… " qui indique qu’il y a eu une erreur lors de l’exécution de la commande setup.py pour la bibliothèque « click ». Il est possible que cela soit dû à une version incompatible de la bibliothèque ou à un problème de configuration sur votre système. Il serait utile de vérifier la version de la bibliothèque « click » compatible avec votre version de python et de vérifier si elle est déjà installée sur votre système. Il serait également utile de vérifier les erreurs de log pour obtenir plus de détails sur l’erreur.

Et quand je lui demande la solution, voici ce qu’il me dit :

ChatGPT : Il existe plusieurs façons de remédier à ce problème, voici quelques suggestions:

1. Vérifier la version compatible de la bibliothèque « click » avec votre version de Python. Si vous utilisez une version incompatible, essayez de mettre à jour ou de réinstaller la bibliothèque avec la version compatible.
2. Vérifier si la bibliothèque « click » est déjà installée sur votre système. Si elle est déjà installée, essayez de la désinstaller et de la réinstaller avec la commande pip3.4.
3. Utilisez l’option « –upgrade » lors de l’installation de la bibliothèque « click » pour mettre à jour toutes les bibliothèques dépendances qui pourraient causer des conflits.
4. Vérifier les erreurs de log pour obtenir plus de détails sur l’erreur. Il se peut qu’il y ait des erreurs liées à des bibliothèques manquantes ou à des configurations système qui doivent être résolues avant d’installer la bibliothèque « click ».
5. Si vous avez des erreurs liées aux autorisations ou aux droits d’accès, vous pouvez essayer de lancer la commande d’installation avec les privilèges administrateur (sudo)
6. Vérifiez que vous n’utilisez pas un environnement virtuel qui pourrait causer des conflits avec les bibliothèques système.
7. Si rien de cela ne fonctionne, vous pouvez essayer de trouver de l’aide en ligne pour résoudre les erreurs spécifiques que vous rencontrez.

PS : ChatGPT, c’est vraiment trop fort !!!

c’est délicat ca, au pire venez demandez avant et au minimum il faut noter…

maintenant on va vous proposer des actions sans savoir ce qu’il s’est passé…
essayez ca

sudo python3 -m pip install --upgrade --force pip

et ensuite relancer les dépendances

euh… rassurez moi, vous n’aviez pas utiliser chatgpt avant de faire vos « manipulations »?

pour dire des phrases toutes faites et génériques qui n’apportent rien de concret oui, super… :unamused:

1 « J'aime »

Bon après avoir lancé la ligne de commande

sudo python3 -m pip install --upgrade --force pip

Voici les log en SSH :

root@Jeedom:~# sudo python3 -m pip install --upgrade --force pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/09/bd/2410905c76ee14c62baf69e3f4aa780226c1bbfc9485731ad018e35b0cb5/pip-22.3.1-py3-none-any.whl (2.1MB)
    100% |████████████████████████████████| 2.1MB 159kB/s
Installing collected packages: pip
  Found existing installation: pip 18.1
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-22.3.1

Et voici les log côté plugin Jeedom :

Launch install of googlecast dependancies
-- Current OS version :
Description:	Debian GNU/Linux 10 (buster)
-- Updating repo...
Hit:1 http://www.deb-multimedia.org buster InRelease
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Fetched 122 kB in 5s (24.8 kB/s)
Reading package lists...
-- Installation of python3 and dependancies
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
-- Installation of pip for python3 and necessary libraries
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
python3-dev is already the newest version (3.7.3-1).
python-requests is already the newest version (2.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of audio sox library
Reading package lists...
Building dependency tree...
Reading state information...
sox is already the newest version (14.4.2+git20190427-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of TTS libraries
Reading package lists...
Building dependency tree...
Reading state information...
libttspico-utils is already the newest version (1.0+git20130326-9).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of libav/ffmpeg libraries
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.10-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Upgrade setuptools with command pip3.7 if not up to date
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.7/dist-packages (65.4.1)
-- Installed version of pip :
pip 22.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
-- Installation of python library 'requests' with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: requests>=2.21.0 in /usr/lib/python3/dist-packages (2.21.0)
-- Installation of python library 'protobuf' with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.7/dist-packages (4.21.7)
-- Installation of python library 'zeroconf' with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: zeroconf==0.31.0 in /usr/local/lib/python3.7/dist-packages (0.31.0)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from zeroconf==0.31.0) (0.2.0)
-- Installation of python library 'click, bs4 and six' for TTS with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (8.1.3)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (0.0.1)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (1.12.0)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from click) (5.0.0)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.7/dist-packages (from bs4) (4.11.1)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.7/dist-packages (from beautifulsoup4->bs4) (2.3.2.post1)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (4.3.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (3.8.1)
-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (4.64.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.7/dist-packages (1.4.1)
Requirement already satisfied: casttube in /usr/local/lib/python3.7/dist-packages (0.2.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from casttube) (2.21.0)
-- Installation of dependencies is done !

En tout cas, merci beaucoup Mips de prendre du temps pour mon problème :star_struck:

Woua !!! c’est bon, ta ligne de code a régler le problème !! Merci beaucoup Mips !!! J’indique ta réponse comme solution a mon sujet.

J’insiste quand même avec ChatGPT, regarde, je lui indique les logs et lui demande le problème :

quel est le problème avec ce code ?

Launch install of googlecast dependancies
-- Current OS version :
Description:	Debian GNU/Linux 10 (buster)
-- Updating repo...
Hit:1 http://www.deb-multimedia.org buster InRelease
Get:2 http://ftp.uk.debian.org/debian buster InRelease [122 kB]
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:5 https://deb.nodesource.com/node_16.x buster InRelease
Hit:6 https://oph.mdrjr.net/meveric all InRelease
Hit:7 https://oph.mdrjr.net/meveric buster InRelease
Fetched 122 kB in 5s (24.8 kB/s)
Reading package lists...
-- Installation of python3 and dependancies
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
-- Installation of pip for python3 and necessary libraries
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
python3-dev is already the newest version (3.7.3-1).
python-requests is already the newest version (2.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of audio sox library
Reading package lists...
Building dependency tree...
Reading state information...
sox is already the newest version (14.4.2+git20190427-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of TTS libraries
Reading package lists...
Building dependency tree...
Reading state information...
libttspico-utils is already the newest version (1.0+git20130326-9).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Installation of libav/ffmpeg libraries
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.10-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-- Upgrade setuptools with command pip3.7 if not up to date
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.7/dist-packages (65.4.1)
-- Installed version of pip :
pip 22.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
-- Installation of python library 'requests' with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: requests>=2.21.0 in /usr/lib/python3/dist-packages (2.21.0)
-- Installation of python library 'protobuf' with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.7/dist-packages (4.21.7)
-- Installation of python library 'zeroconf' with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: zeroconf==0.31.0 in /usr/local/lib/python3.7/dist-packages (0.31.0)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from zeroconf==0.31.0) (0.2.0)
-- Installation of python library 'click, bs4 and six' for TTS with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (8.1.3)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (0.0.1)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (1.12.0)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from click) (5.0.0)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.7/dist-packages (from bs4) (4.11.1)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.7/dist-packages (from beautifulsoup4->bs4) (2.3.2.post1)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (4.3.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (3.8.1)
-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (4.64.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.7/dist-packages (1.4.1)
Requirement already satisfied: casttube in /usr/local/lib/python3.7/dist-packages (0.2.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from casttube) (2.21.0)
-- Installation of dependencies is done !

et voici sa réponse :

Il n'y a pas de problème apparent dans ce code. Il s'agit d'un script d'installation de dépendances pour un plugin Google Cast, qui vérifie les versions installées des différents paquets nécessaires (Python, pip, audio sox, TTS, libav/ffmpeg, etc.) et les met à jour si nécessaire. Il affiche également des avertissements pour indiquer qu'il est préférable d'utiliser un environnement virtuel plutôt que de lancer pip en tant qu'utilisateur root.

Donc il a compris que c’était pour un plugin qui s’appelle Google Cast (alors que je lui ai rien indiqué), et il me confirme qu’il n’y a pas de problème.

Je t’assure que ChatGPT ne se contente pas de répondre bêtement comme une requête Google par exemple. Mais après, c’est pas lui qui a trouvé la solution malgré mes requête, c’est toi qui l’a trouvé (en même temps, il m’a proposé des solutions et il m’indique a un moment que si ça ne marche pas, mieux vaut trouver de l’aide d’une personne qui connait le sujet -----> toi :slight_smile: )

je sais, déjà testé :wink: