Demon NOK: Downgrade the protobuf package

Bonjour , je suis actuelement sur une Jeedom type LUNA et le demon de mon plugin google cast reste en NOK . J’ai reinstallé le plugin et les depences et redemarer le tout mais rien n’y fais. Voila le log

[2023-01-11 09:25:04][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2023-01-11 09:25:05][INFO] : Lancement démon googlecast : /usr/bin/python3 /var/www/html/plugins/googlecast/resources/googlecast.py --loglevel info --socketport 55012 --sockethost 127.0.0.1 --callback http://127.0.0.1:80/plugins/googlecast/core/php/googlecast.api.php --apikey dE0TuRMtD1wndTwaDTRwt0NU0dW2BcNDvmy386gN2CdbKZRL3ji0ZMVWjyvsJURy --ttsweb http://192.168.0.102 --ttslang fr-FR --ttsengine gttsapi --ttsspeed 1.2 --ttscache 1 --ttsgapikey AIzaSyCOg-etliAhpmBrk88KhCA5yKZLGl_ReQw --gcttsvoice fr-FR-Wavenet-B --ttsdefaultrestoretime 1300 --ttsdefaultsilenceduration 300 --daemonname local --cyclefactor 1 --defaultstatus ' '


Launch install of googlecast dependancies

-- Current OS version :
Description:	Debian GNU/Linux 11 (bullseye)

-- Updating repo...
Hit:1 https://deb.nodesource.com/node_16.x bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Get:3 https://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:4 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:5 https://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:6 https://deb.debian.org/debian-security bullseye-security/main Sources [174 kB]
Get:7 https://deb.debian.org/debian-security bullseye-security/main arm64 Packages [207 kB]
Get:8 https://deb.debian.org/debian-security bullseye-security/main Translation-en [137 kB]
Get:9 https://deb.debian.org/debian bullseye-backports/main Sources.diff/Index [63.3 kB]
Get:10 https://deb.debian.org/debian bullseye-backports/main arm64 Packages.diff/Index [63.3 kB]
Get:11 https://deb.debian.org/debian bullseye-backports/main Sources T-2023-01-10-2004.11-F-2023-01-10-2004.11.pdiff [31 B]
Get:11 https://deb.debian.org/debian bullseye-backports/main Sources T-2023-01-10-2004.11-F-2023-01-10-2004.11.pdiff [31 B]
Get:12 https://deb.debian.org/debian bullseye-backports/main arm64 Packages T-2023-01-10-2004.11-F-2023-01-10-2004.11.pdiff [637 B]
Get:12 https://deb.debian.org/debian bullseye-backports/main arm64 Packages T-2023-01-10-2004.11-F-2023-01-10-2004.11.pdiff [637 B]
Fetched 787 kB in 4s (203 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.9).
python3 is already the newest version (3.9.2-3).
python-dev-is-python2 is already the newest version (2.7.18-9).
The following packages were automatically installed and are no longer required:
  libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0
  libstd-rust-1.48 libstd-rust-dev rust-gdb
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

-- Installed version of Python :
Python 3.9.2
  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...
E: Unable to locate package python-requests

-- Installation of audio sox library
Reading package lists...
Building dependency tree...
Reading state information...
sox is already the newest version (14.4.2+git20190427-2).
The following packages were automatically installed and are no longer required:
  libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0
  libstd-rust-1.48 libstd-rust-dev rust-gdb
Use 'sudo apt autoremove' to remove them.
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-11).
The following packages were automatically installed and are no longer required:
  libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0
  libstd-rust-1.48 libstd-rust-dev rust-gdb
Use 'sudo apt autoremove' to remove them.
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.3.5-0+deb11u1).
The following packages were automatically installed and are no longer required:
  libgit2-1.1 libhttp-parser2.9 libmbedcrypto3 libmbedtls12 libmbedx509-0
  libstd-rust-1.48 libstd-rust-dev rust-gdb
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

-- Upgrade setuptools with command pip3.9 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.9/dist-packages (65.6.3)

-- Installed version of pip :
pip 22.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)

-- Installation of python library 'requests' with command pip3.9
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/local/lib/python3.9/dist-packages (2.28.1)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (2.1.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (1.26.13)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (3.4)

-- Installation of python library 'protobuf' with command pip3.9
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.9/dist-packages (4.21.12)

-- Installation of python library 'zeroconf' with command pip3.9
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.25.1 in /usr/local/lib/python3.9/dist-packages (0.47.1)
Requirement already satisfied: async-timeout>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from zeroconf>=0.25.1) (4.0.2)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.9/dist-packages (from zeroconf>=0.25.1) (0.2.0)

-- Installation of python library 'click, bs4 and six' for TTS with command pip3.9
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.9/dist-packages (8.1.3)
Requirement already satisfied: bs4 in /usr/local/lib/python3.9/dist-packages (0.0.1)
Requirement already satisfied: six in /usr/local/lib/python3.9/dist-packages (1.16.0)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.9/dist-packages (from bs4) (4.11.1)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.9/dist-packages (from beautifulsoup4->bs4) (2.3.2.post1)

-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.9
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.9/dist-packages (4.64.1)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.9/dist-packages (1.4.2)
Requirement already satisfied: casttube in /usr/local/lib/python3.9/dist-packages (0.2.1)
Requirement already satisfied: requests in /usr/local/lib/python3.9/dist-packages (from casttube) (2.28.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (2022.12.7)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (1.26.13)

-- Installation of dependencies is done !

Traceback (most recent call last):
  File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 45, in <module>
    import pychromecast.pychromecast as pychromecast
  File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 12, in <module>
    from . import socket_client
  File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/socket_client.py", line 23, in <module>
    from . import cast_channel_pb2
  File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/cast_channel_pb2.py", line 33, in <module>
    _descriptor.EnumValueDescriptor(
  File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, 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

Bonjour,

  1. Avez-vous cherché parmi les posts récents (ou moins récent) du plugin? => https://community.jeedom.com/tag/plugin-googlecast
  2. pour toute demande d’aide il faut au minimum, après avoir cherché:
    a. capture d’écran de la page santé de jeedom
    b. tous les logs (dépendances, plugin, démon…) (dans un Texte préformaté comme vous avez fait)

edit: entre temps je vous les captures de la config :+1:

oui j’ai beaucoup chercher mais rien ne correspond surtout que 2 point sont importants , je suis nouvel utilistateur et je ne veux pas faire n’importe quoi et en plus je suis sur une LUNA et il n’y a encore que peu d’utilisteur de la LUNA et je ne veux pas tout planter

ok, copier/coller les logs « xxx_update » & « xxx_local » alors, on y verra l’erreur.
Le premier log donné dit qu’il y a un problème mais il n’y a aucun détail la dedans

j’ai rajouté les fichiers log update et local dans mon premier message. Merci de prendre du temps c’est la premiere fois que je fais appel a la communauté Jeedom.

L’erreur dans les logs:

La solution est ici:

si je comprend bien il faut que je lance une commande ssh sur ma LUNA , sais tu comment je peux lancer cette commande?

sudo pip3 uninstall protobuf
sudo pip3 install 'protobuf==3.19.0'

Config jeedom, onglet OS/DB, outils administration système:

ensuite tapez la commande et cliquez sur « ok »
image

la deuxième commande suffira en principe, si nécessaire la version précédente sera désinstallée automatiquement

Montrez-nous le résultat qui s’affichera en dessous pour être sur

3 « J'aime »

Merci beaucoup ca a fonctionné juste avec la 2eme commande et en plus ca ma permis de savoir que l’on pouvais lancer des commandes system directement via le menu os/db. Merci encore pour votre temps.

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