Demon Googlecast ne veut plus démarrer

Bonjour la communauté,

Ce matin, sans rien avoir fait, de nombreux démons étaient arrêté. (Plugin Zigbee, Ewejee, etc…)
Après les avoirs tous redémarré, seul mon plugin Googlecast ne fonctionne plus.
Impossible de relancer le demon. Dépandances OK.
Je suis sur rasberry 3b+ et Jeedom V4 à jour.
Je n’ai pourtant rien touché depuis fort longtemps.

Pourriez vous m’aider svp?

Voici les logs Googlecast Local

 Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 45, in 
import pychromecast.pychromecast as pychromecast
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 12, in 
from . import socket_client
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/socket_client.py", line 23, in 
from . import cast_channel_pb2
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/cast_channel_pb2.py", line 36, in 
type=None),
File "/usr/local/lib/python3.7/dist-packages/google/protobuf/descriptor.py", line 796, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 45, in 
import pychromecast.pychromecast as pychromecast
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 12, in 
from . import socket_client
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/socket_client.py", line 23, in 
from . import cast_channel_pb2
File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/cast_channel_pb2.py", line 36, in 
type=None),
File "/usr/local/lib/python3.7/dist-packages/google/protobuf/descriptor.py", line 796, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Et les Googlecast update

Launch install of googlecast dependancies
-- Current OS version :
Description:	Raspbian GNU/Linux 10 (buster)
-- Updating repo...
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
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 234 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...
python-requests is already the newest version (2.21.0-1+deb10u1).
python3-dev is already the newest version (3.7.3-1).
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 234 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+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 234 not upgraded.
-- Installation of TTS libraries
Reading package lists...
Building dependency tree...
Reading state information...
Package libttspico-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libttspico-utils' has no installation candidate
-- Installation of libav/ffmpeg libraries
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.11-0+deb10u1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 234 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
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.7/dist-packages (68.0.0)
-- Installed version of pip :
pip 23.1.2 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
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests>=2.21.0 in /usr/local/lib/python3.7/dist-packages (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (2.0.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (2023.5.7)
-- 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
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.7/dist-packages (4.24.1)
-- 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
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: zeroconf>=0.25.1 in /usr/local/lib/python3.7/dist-packages (0.82.1)
Requirement already satisfied: async-timeout>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from zeroconf>=0.25.1) (4.0.2)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from zeroconf>=0.25.1) (0.2.0)
Requirement already satisfied: typing-extensions>=3.6.5 in /usr/local/lib/python3.7/dist-packages (from async-timeout>=3.0.0->zeroconf>=0.25.1) (4.7.1)
-- 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
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (8.1.4)
Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (0.0.1)
Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (1.16.0)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from click) (6.7.0)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.7/dist-packages (from bs4) (4.12.2)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.7/dist-packages (from beautifulsoup4->bs4) (2.4.1)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (3.15.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (4.7.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
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (4.66.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.7/dist-packages (1.6.1)
Requirement already satisfied: casttube in /usr/local/lib/python3.7/dist-packages (0.2.1)
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from casttube) (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (2.0.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (2023.5.7)
-- Installation of dependencies is done !

Bonjour,

A mon avis vous n’avez pas « rien fait »; rien n’arrive tout seul.
Vous avez dû mettre à jour les paquets python.

Cherchez sur le sujet concernant le plugin sur « protobuf » il y a déjà des dizaines de posts avec la même question (et la solution)

https://community.jeedom.com/tag/plugin-googlecast

Coucou,
Je vous assure que je n’ai rien touché du tout à mon Jeedom depuis plus d’un mois.
Je ne pouvais plus mettre mon alarme ce matin (modules zigbee et son sur Google nest ne fonctionnait plus)
C’est là que j’ai remarqué que les démons étaient éteint sur pas mal de plugin hors service.
Seul le démon du plugin Googlecast ne veut plus se relancer.

Cela fait quelques temps que je ne fais plus de maj car la dernière m’avait procurer des soucis de dépendance sur le plugin zigbee et j’ai galère à trouver la solution.
Mais quand ça marche et que je touche plus ben…

Ça commence d’ailleurs à me #%## que sans rien touché, régulièrement je perds le signal de certains appareils zigbee (que je dois ré apairer avec le plugin zigbee) et là les démons éteint.

Pour mon cas (dsl mais je suis novice) qu’est ce que les logs vous racontent?
J’ai déjà lu les post sur les protobufs mais ils disent de ne pas faire de commande ssh si ce n’est le problème.
D’ailleurs je ne sais même pas où taper cette ligne de commande.

Je suis sur mobile, je ne sais pas donner plus d’info pour le moment mais je note un rappel pour demain

1 « J'aime »

Suivez ceci, montrez nous le résultat et testez de relancer le démon ensuite:

1 « J'aime »

Merci beaucoup.
Dès que je rentre je test ça.

Voici les résulktats:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting protobuf==3.19.0
  Downloading https://www.piwheels.org/simple/protobuf/protobuf-3.19.0-py2.py3-none-any.whl (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.4/162.4 kB 2.4 MB/s eta 0:00:00
Installing collected packages: protobuf
  Attempting uninstall: protobuf
    Found existing installation: protobuf 4.24.1
    Uninstalling protobuf-4.24.1:
      Successfully uninstalled protobuf-4.24.1
Successfully installed protobuf-3.19.0
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

[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: python3 -m pip install --upgrade pip

Le demon c’est de suite remis en marche.

Un grand merci à toi pour ton aide.

Aurai-tu une idée du pourquoi cela s’est produit alors que je n’ai pas touché Jeedoml depuis plus d’un mois?
De plus, étant pas programmeur ou informaticien (simple menuisier), j’ai tout de même au fur et à mesure des années pu me concevoir via jeedom une alarme, gestion automatique de piscine(arduino, tuto etc…), suivi de mon système photovoltaique etc…
Mon plus grand soucis est en cas de panne de mon Jeedom installé sur un Rasberry 3b+ plus ssd (que je ne serai même plus comment réinstaller lol).
Si un jour cela se produit, j’ai cru comprendre que les sauvegardes Jeedom ne permettent souvent pas de tout remettre en état de fonctionnement.
y a-t’il une solution de sauvegarde qui me permettrai en cas de panne de mon ssd ou de mon rasberry de pouvoir tout remettre ailleurs sans devoir tout reprogrammer (j’y ai passé des semaines en suivant des tutos, je ne serai même plus y refaire et pas prêt de tout recommencer)

Merci encore.

Impossible.
ou alors cela ne fonctionnait plus depuis un certain temps suite à une action mais vous ne l’aviez pas remarqué.

si, il suffit de réinstaller un système avec jeedom et de restaurer le backup et tout sera installé comme avant (plugins, equipements, commandes, scénarios…); pas de soucis à ce niveau

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