GoogleCast Démon NOK

Bonsoir. Le démon Googlecast reste nok :
Voici mes logs : <Traceback (most recent call last):

  File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 39, in <module>
    from gcloudtts import gcloudTTS, gcloudTTSError
  File "/var/www/html/plugins/googlecast/resources/gcloudtts/__init__.py", line 2, in <module>
    from .gcloudtts import gcloudTTS, gcloudTTSError
  File "/var/www/html/plugins/googlecast/resources/gcloudtts/gcloudtts.py", line 4, in <module>
    import click
ImportError: No module named 'click'
Traceback (most recent call last):
  File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 39, in <module>
    from gcloudtts import gcloudTTS, gcloudTTSError
  File "/var/www/html/plugins/googlecast/resources/gcloudtts/__init__.py", line 2, in <module>
    from .gcloudtts import gcloudTTS, gcloudTTSError
  File "/var/www/html/plugins/googlecast/resources/gcloudtts/gcloudtts.py", line 4, in <module>
    import click
ImportError: No module named 'click'
Traceback (most recent call last):
  File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 39, in <module>
    from gcloudtts import gcloudTTS, gcloudTTSError
  File "/var/www/html/plugins/googlecast/resources/gcloudtts/__init__.py", line 2, in <module>
    from .gcloudtts import gcloudTTS, gcloudTTSError
  File "/var/www/html/plugins/googlecast/resources/gcloudtts/gcloudtts.py", line 4, in <module>
    import click
ImportError: No module named 'click'
>`

Que dois je faire s’il vous plait…? Merci d’avance

`

Bonsoir,

Sans information complémentaire sur ton matériel, ta version logiciel, etc… difficile de te fournir de l’aide

Je suis sur une Jeedom Pro en V4…

Est ce Linux est a jour?
Est ce que la config réseau jeedom est OK?
Est ce que les dépendances sont OK ?

Logs, captures écrans ?

Sans vraies infos techniques on ne peut rien faire et c’est bien ce que le lien posté par iPapy tente d’expliquer… encore faut il le lire

1 « J'aime »

Voici la page santé de la Jeedom concernée. Tout semble OK


Et voici la config réseau :

Et les logs je les ai mis au début si c’est cela qu’il faut…

Il faudrait une capture de la config du plug-in du le log d’install des dépendances

Voici la capture d’écran de la config du plugin :

Et les logs de l’installations des dépendances :

Launch install of googlecast dependancies

-- Current OS version :
Description:	Debian GNU/Linux 9.13 (stretch)

-- Updating repo...
Get:1 http://security.debian.org stretch/updates InRelease [53.0 kB]
Ign:3 http://ftp.debian.org/debian stretch InRelease
Hit:4 http://www.deb-multimedia.org stretch InRelease
Get:5 http://ftp.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:6 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:7 https://deb.nodesource.com/node_10.x stretch InRelease
Get:8 http://ftp.debian.org/debian stretch-proposed-updates InRelease [96.3 kB]
Hit:9 http://ftp.debian.org/debian stretch Release
Get:10 http://security.debian.org stretch/updates/main Sources [314 kB]
Get:11 http://security.debian.org stretch/updates/main arm64 Packages [611 kB]
Hit:12 https://oph.mdrjr.net/meveric all InRelease
Hit:13 https://oph.mdrjr.net/meveric stretch InRelease
Ign:2 https://repo.jeedom.com/odroid stable InRelease
Get:15 https://repo.jeedom.com/odroid stable Release [932 B]
Get:16 https://repo.jeedom.com/odroid stable Release.gpg [659 B]
Fetched 1261 kB in 5s (219 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.3).
python-dev is already the newest version (2.7.13-2).
python3 is already the newest version (3.5.3-1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

-- Installed version of Python :
Python 3.5.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-dev is already the newest version (3.5.3-1).
python-requests is already the newest version (2.12.4-1).
python3-pip is already the newest version (9.0.1-2+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

-- Installation of audio sox library
Reading package lists...
Building dependency tree...
Reading state information...
sox is already the newest version (14.4.1-5+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 9 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-5).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

-- Installation of libav/ffmpeg libraries
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:3.2.15-0+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

-- Upgrade setuptools with command pip3.7 if not up to date
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: setuptools>=42.0.0 in /usr/lib/python3.7/site-packages (50.3.2)

-- Installed version of pip :
pip 19.0.3 from /usr/lib/python3.7/site-packages/pip (python 3.7)

-- Installation of python library 'requests' with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: requests>=2.21.0 in /usr/lib/python3.7/site-packages (2.25.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (2020.11.8)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (1.26.2)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (3.0.4)

-- Installation of python library 'protobuf' with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: protobuf>=3.11.0 in /usr/lib/python3.7/site-packages (3.14.0)
Requirement already satisfied: six>=1.9 in /usr/lib/python3.7/site-packages (from protobuf>=3.11.0) (1.15.0)

-- Installation of python library 'zeroconf' with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: zeroconf>=0.25.1 in /usr/lib/python3.7/site-packages (0.28.6)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/lib/python3.7/site-packages (from zeroconf>=0.25.1) (0.1.7)

-- Installation of python library 'click, bs4 and six' for TTS with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: click in /usr/lib/python3.7/site-packages (7.1.2)
Requirement already satisfied: bs4 in /usr/lib/python3.7/site-packages (0.0.1)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (1.15.0)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3.7/site-packages (from bs4) (4.9.3)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in /usr/lib/python3.7/site-packages (from beautifulsoup4->bs4) (2.0.1)

-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: tqdm in /usr/lib/python3.7/site-packages (4.54.0)
Requirement already satisfied: websocket-client in /usr/lib/python3.7/site-packages (0.57.0)
Requirement already satisfied: casttube in /usr/lib/python3.7/site-packages (0.2.1)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from websocket-client) (1.15.0)
Requirement already satisfied: requests in /usr/lib/python3.7/site-packages (from casttube) (2.25.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.7/site-packages (from requests->casttube) (2020.11.8)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3.7/site-packages (from requests->casttube) (3.0.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.7/site-packages (from requests->casttube) (1.26.2)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3.7/site-packages (from requests->casttube) (2.10)

-- Installation of dependencies is done !

Ton linux est bien à jour ?

apt-get update
apt-get upgrade
apt-get dist-upgrade

Et ensuite faire ce qui’il y a écrit dans le log

@anon53349806 , je peux le faire à distance cela…?

si tu as un accès oui

@anon53349806 lorsque je lance art-get update cela reste bloqué :

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://ftp.debian.org/debian stretch InRelease
Hit:3 http://www.deb-multimedia.org stretch InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch-backports InRelease
Hit:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_10.x stretch InRelease
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Ign:4 https://repo.jeedom.com/odroid stable InRelease
Get:13 https://repo.jeedom.com/odroid stable Release [932 B]
Get:14 https://repo.jeedom.com/odroid stable Release.gpg [659 B]
Fetched 1591 B in 5s (279 B/s)
Reading package lists...

Me voilà sur place. J’ai effectué les commandes
apt-get update
apt-get upgrade
apt-get dist-upgrade
Ensuite, pip install --upgrade pip
J’ai relancé mes dépendances dont voici les logs :

Launch install of googlecast dependancies

-- Current OS version :
Description:	Debian GNU/Linux 9.13 (stretch)

-- Updating repo...
Hit:1 http://www.deb-multimedia.org stretch InRelease
Ign:2 http://ftp.debian.org/debian stretch InRelease
Hit:3 http://security.debian.org stretch/updates InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch-backports InRelease
Hit:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_10.x stretch InRelease
Get:4 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Fetched 1640 B in 5s (326 B/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.3).
python-dev is already the newest version (2.7.13-2).
python3 is already the newest version (3.5.3-1).
The following package was automatically installed and is no longer required:
  linux-headers-3.14.79+
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

-- Installed version of Python :
Python 3.5.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-dev is already the newest version (3.5.3-1).
python-requests is already the newest version (2.12.4-1).
python3-pip is already the newest version (9.0.1-2+deb9u2).
The following package was automatically installed and is no longer required:
  linux-headers-3.14.79+
Use 'sudo apt autoremove' to remove it.
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.1-5+deb9u2).
The following package was automatically installed and is no longer required:
  linux-headers-3.14.79+
Use 'sudo apt autoremove' to remove it.
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-5).
The following package was automatically installed and is no longer required:
  linux-headers-3.14.79+
Use 'sudo apt autoremove' to remove it.
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:3.2.15-0+deb9u1).
The following package was automatically installed and is no longer required:
  linux-headers-3.14.79+
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

-- Upgrade setuptools with command pip3.7 if not up to date
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: setuptools>=42.0.0 in /usr/lib/python3.7/site-packages (50.3.2)

-- Installed version of pip :
pip 19.0.3 from /usr/lib/python3.7/site-packages/pip (python 3.7)

-- Installation of python library 'requests' with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: requests>=2.21.0 in /usr/lib/python3.7/site-packages (2.25.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (2020.11.8)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (2.10)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (3.0.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.7/site-packages (from requests>=2.21.0) (1.26.2)

-- Installation of python library 'protobuf' with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: protobuf>=3.11.0 in /usr/lib/python3.7/site-packages (3.14.0)
Requirement already satisfied: six>=1.9 in /usr/lib/python3.7/site-packages (from protobuf>=3.11.0) (1.15.0)

-- Installation of python library 'zeroconf' with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: zeroconf>=0.25.1 in /usr/lib/python3.7/site-packages (0.28.6)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/lib/python3.7/site-packages (from zeroconf>=0.25.1) (0.1.7)

-- Installation of python library 'click, bs4 and six' for TTS with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: click in /usr/lib/python3.7/site-packages (7.1.2)
Requirement already satisfied: bs4 in /usr/lib/python3.7/site-packages (0.0.1)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (1.15.0)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3.7/site-packages (from bs4) (4.9.3)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in /usr/lib/python3.7/site-packages (from beautifulsoup4->bs4) (2.0.1)

-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.7
You are using pip version 19.0.3, however version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied: tqdm in /usr/lib/python3.7/site-packages (4.54.0)
Requirement already satisfied: websocket-client in /usr/lib/python3.7/site-packages (0.57.0)
Requirement already satisfied: casttube in /usr/lib/python3.7/site-packages (0.2.1)
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from websocket-client) (1.15.0)
Requirement already satisfied: requests in /usr/lib/python3.7/site-packages (from casttube) (2.25.0)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3.7/site-packages (from requests->casttube) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.7/site-packages (from requests->casttube) (2020.11.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.7/site-packages (from requests->casttube) (1.26.2)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3.7/site-packages (from requests->casttube) (2.10)

-- Installation of dependencies is done !

Le problème semble identique…

Lorsque je lance pop Install voici ce que cela me dit :

root@jeedom:~# sudo pip install --upgrade pip
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Requirement already satisfied: pip in /usr/local/lib/python3.5/dist-packages (20.3.1)

Je penser que le soucis est un mix de version python entre « python » (3.5) et « pip » (3.7)
C’est pour ça que les libs (clicks par ex) sont vues comme installées mais qu’ensuite elles manquent dans le log du plug-in.

Je ne suis plus certain de la commande et je suis sur tel donc je verifierai plus tard mais il faire réinstaller pip proprement pour python3 avec une commande du genre :

python3 -m pip install --upgrade

Et ensuite relancer les dépendances

J’aimerai savoir traduire ce que Linux veut me dire …
Voilà ce que ça me donne :

root@jeedom:~# python3 -pip install --force 
Unknown option: -p
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

Je me suis trompé dans le message précédent, j’ai mis à jour la commande (compliqué de taper ce genre de commande sur tel)

Message semblable…

root@jeedom:~# python3 -m pip install --force 
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
ERROR: You must give at least one requirement to install (see "pip help install")

Personne pour m’aider…

Essayez avec

python3 -m pip install --upgrade

J’ai une erreur :

DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
ERROR: You must give at least one requirement to install (see "pip help install")