TypeError: Descriptors cannot not be created directly

Bonjour,

J’ai une jeedom atlas en version 4.2.18.

Je rencontre un problème avec le plugin google cast.

Les dépendances se sont installées correctement mais le démon refuse de démarrer.

Ci-dessous, le contenu des fichiers de log du plugin.

Merci d’avance pour votre aide.

Dominique

Le contenu du fichier googlecast_local comporte un message d’ erreur (|TypeError: Descriptors cannot not be created directly.) et une solution de contournement que je ne comprends pas du tout …

0455|Traceback (most recent call last):
0456|File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 45, in 
0457|import pychromecast.pychromecast as pychromecast
0458|File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/__init__.py", line 12, in 
0459|from . import socket_client
0460|File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/socket_client.py", line 23, in 
0461|from . import cast_channel_pb2
0462|File "/var/www/html/plugins/googlecast/resources/pychromecast/pychromecast/cast_channel_pb2.py", line 36, in 
0463|type=None),
0464|File "/usr/local/lib/python3.7/dist-packages/google/protobuf/descriptor.py", line 755, in __new__
0465|_message.Message._CheckCalledFromGeneratedFile()
0466|TypeError: Descriptors cannot not be created directly.
0467|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.
0468|If you cannot immediately regenerate your protos, some other possible workarounds are:
0469|1. Downgrade the protobuf package to 3.20.x or lower.
0470|2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
0471|More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Le fichier de log googlecast_update comporte quelques warning …

0000|Launch install of googlecast dependancies
0001|-- Current OS version :
0002|Description:	Debian GNU/Linux 10 (buster)
0003|-- Updating repo...
0004|Hit:1 http://deb.debian.org/debian buster InRelease
0005|Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]
0006|Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
0007|Get:5 http://deb.debian.org/debian buster-backports InRelease [46.7 kB]
0008|Hit:4 http://mirrors.xtom.de/armbian buster InRelease
0009|Get:6 http://deb.debian.org/debian buster-backports/main arm64 Packages.diff/Index [27.8 kB]
0010|Get:7 http://deb.debian.org/debian buster-backports/main armhf Packages.diff/Index [27.8 kB]
0011|Get:8 http://deb.debian.org/debian buster-backports/main armhf Contents (deb).diff/Index [28.0 kB]
0012|Get:9 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb).diff/Index [27.9 kB]
0013|Get:10 http://deb.debian.org/debian buster-backports/main arm64 Packages 2022-06-07-1410.28.pdiff [408 B]
0014|Get:11 http://deb.debian.org/debian buster-backports/main arm64 Packages 2022-06-07-2014.25.pdiff [1079 B]
0015|Get:11 http://deb.debian.org/debian buster-backports/main arm64 Packages 2022-06-07-2014.25.pdiff [1079 B]
0016|Get:12 http://deb.debian.org/debian buster-backports/main armhf Packages 2022-06-07-1410.28.pdiff [408 B]
0017|Get:13 http://deb.debian.org/debian buster-backports/main armhf Packages 2022-06-07-2014.25.pdiff [1064 B]
0018|Get:13 http://deb.debian.org/debian buster-backports/main armhf Packages 2022-06-07-2014.25.pdiff [1064 B]
0019|Get:14 http://deb.debian.org/debian buster-backports/main armhf Contents (deb) 2022-06-07-1410.28.pdiff [1553 B]
0020|Get:15 http://deb.debian.org/debian buster-backports/main armhf Contents (deb) 2022-06-07-2014.25.pdiff [93 B]
0021|Get:16 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb) 2022-06-07-1410.28.pdiff [1548 B]
0022|Get:15 http://deb.debian.org/debian buster-backports/main armhf Contents (deb) 2022-06-07-2014.25.pdiff [93 B]
0023|Get:17 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb) 2022-06-07-2014.25.pdiff [93 B]
0024|Get:17 http://deb.debian.org/debian buster-backports/main arm64 Contents (deb) 2022-06-07-2014.25.pdiff [93 B]
0025|Hit:18 https://deb.nodesource.com/node_14.x buster InRelease
0026|Fetched 282 kB in 11s (25.2 kB/s)
0027|Reading package lists...
0028|-- Installation of python3 and dependancies
0029|Reading package lists...
0030|Building dependency tree...
0031|Reading state information...
0032|build-essential is already the newest version (12.6).
0033|python-dev is already the newest version (2.7.16-1).
0034|python3 is already the newest version (3.7.3-1).
0035|0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
0036|-- Installed version of Python :
0037|Python 3.7.3
0038|Your version of python is compatible with this plugin.
0039|-- Installation of pip for python3 and necessary libraries
0040|Reading package lists...
0041|Building dependency tree...
0042|Reading state information...
0043|python3-pip is already the newest version (18.1-5).
0044|python3-dev is already the newest version (3.7.3-1).
0045|python-requests is already the newest version (2.21.0-1).
0046|0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
0047|-- Installation of audio sox library
0048|Reading package lists...
0049|Building dependency tree...
0050|Reading state information...
0051|sox is already the newest version (14.4.2+git20190427-1).
0052|0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
0053|-- Installation of TTS libraries
0054|Reading package lists...
0055|Building dependency tree...
0056|Reading state information...
0057|libttspico-utils is already the newest version (1.0+git20130326-9).
0058|0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
0059|-- Installation of libav/ffmpeg libraries
0060|Reading package lists...
0061|Building dependency tree...
0062|Reading state information...
0063|ffmpeg is already the newest version (7:4.1.9-0+deb10u1).
0064|0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
0065|-- Upgrade setuptools with command pip3.7 if not up to date
0066|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
0067|Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.7/dist-packages (62.3.3)
0068|-- Installed version of pip :
0069|pip 22.1.2 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
0070|-- Installation of python library 'requests' with command pip3.7
0071|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
0072|Requirement already satisfied: requests>=2.21.0 in /usr/local/lib/python3.7/dist-packages (2.27.1)
0073|Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (1.26.9)
0074|Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (2.0.12)
0075|Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (2022.5.18.1)
0076|Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests>=2.21.0) (3.3)
0077|-- Installation of python library 'protobuf' with command pip3.7
0078|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
0079|Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.7/dist-packages (4.21.1)
0080|-- Installation of python library 'zeroconf' with command pip3.7
0081|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
0082|Requirement already satisfied: zeroconf>=0.25.1 in /usr/local/lib/python3.7/dist-packages (0.38.6)
0083|Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from zeroconf>=0.25.1) (0.1.7)
0084|-- Installation of python library 'click, bs4 and six' for TTS with command pip3.7
0085|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
0086|Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (8.1.3)
0087|Requirement already satisfied: bs4 in /usr/local/lib/python3.7/dist-packages (0.0.1)
0088|Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (1.16.0)
0089|Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from click) (4.11.4)
0090|Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.7/dist-packages (from bs4) (4.11.1)
0091|Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.7/dist-packages (from beautifulsoup4->bs4) (2.3.2.post1)
0092|Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (3.8.0)
0093|Requirement already satisfied: typing-extensions>=3.6.4 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->click) (4.2.0)
0094|-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.7
0095|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
0096|Requirement already satisfied: tqdm in /usr/local/lib/python3.7/dist-packages (4.64.0)
0097|Requirement already satisfied: websocket-client in /usr/local/lib/python3.7/dist-packages (1.3.2)
0098|Requirement already satisfied: casttube in /usr/local/lib/python3.7/dist-packages (0.2.1)
0099|Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from casttube) (2.27.1)
0100|Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (3.3)
0101|Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (2.0.12)
0102|Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (2022.5.18.1)
0103|Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->casttube) (1.26.9)
0104|-- Installation of dependencies is done !

Bonjour, j’ai le même soucis suite à une migration smart vers atlas, j’ai peur vu le peu de réponse, avez vous trouver une solution depuis ?

Solution ici : Non démarrage du Demon de Google Cast - #18 par Apose

si vous pouvez fermer votre post, merci

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