Démon HS depuis upgrade Debian 10 to 11

Hello,

J’ai mis à jour ma Debian 10 sous version 11, et j’ai le plugin gcast qui semble poser soucis.
Tout à bien été upgrade, mon python 3.7 est passsé en 3.9 (visiblement bien détecté), j’ai lancé l’installation des dépendances, puis relancer le démon mais le soucis persiste.

Merci

Logs dépendances :

Launch install of googlecast dependancies
-- Current OS version :
Description:	Debian GNU/Linux 11 (bullseye)
-- Updating repo...
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
Hit:4 https://repos.influxdata.com/debian bullseye InRelease
Hit:5 https://packagecloud.io/ookla/speedtest-cli/debian bullseye 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.9).
python3 is already the newest version (3.9.2-3).
python-dev-is-python2 is already the newest version (2.7.18-9).
0 upgraded, 0 newly installed, 0 to remove and 0 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).
0 upgraded, 0 newly installed, 0 to remove and 0 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).
0 upgraded, 0 newly installed, 0 to remove and 0 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.4-0+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 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/lib/python3/dist-packages (52.0.0)
-- 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: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (3.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (2022.9.24)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.21.0) (1.26.12)
-- 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.9)
-- 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.39.4)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.9/dist-packages (from zeroconf>=0.25.1) (0.2.0)
Requirement already satisfied: async-timeout>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from zeroconf>=0.25.1) (4.0.2)
-- 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: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (1.26.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (3.4)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (2.1.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests->casttube) (2022.9.24)
-- Installation of dependencies is done !

Logs démon :

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 33, in 
_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
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 33, in 
_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
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 33, in 
_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
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 33, in 
_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
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 33, in 
_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
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 33, in 
_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

Et? Jeedom n’est pas encore compatible ave debian 11. Donc pourquoi faire cette mise à jour?

Antoine

Bonjour,

Verifiez le tag du plugin svp.
A voir le log je pense que c’est plugin-googlecast

L’ID du plugin est visible sur la page de config.

Ensuite je vous invite à faire une recherche sur le bon plugin et « protobuf » (l’erreur dans le log) et vous trouverez plusieurs sujets

1 « J'aime »

???

« La dernière version de Debian » :
https://doc.jeedom.com/fr_FR/howtoadvance/debian.installation

Version en stable depuis 1 an et demi, « pas de bugs notable » :
https://doc.jeedom.com/fr_FR/compatibility/debian11

Hormis GCast, la totalité des plugins fonctionne bien :slight_smile:

Effectivement sorry c’est corrigé, c’est que j’ai fait « nouveau » depuis celui-ci, et il a été rempli par défaut :

Ok top merci !

Fixed :

sudo pip3 uninstall protobuf
sudo pip3 install 'protobuf==3.19.0'
3 « J'aime »

Tant mieux mais tous les plugins ne sont pas fonctionnels avec debian 11 du fait de paquets pythons différents, le plus important étant l’absence de python 2.

Antoine

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