Bonjour,
Tout est dans le titre. J’ai parcouru le forum:
Found existing installation: protobuf 3.19.0
Uninstalling protobuf-3.19.0:
Would remove:
/usr/local/lib/python3.9/dist-packages/google/protobuf/*
/usr/local/lib/python3.9/dist-packages/protobuf-3.19.0-py3.9-nspkg.pth
/usr/local/lib/python3.9/dist-packages/protobuf-3.19.0.dist-info/*
Proceed (y/n)? n
root@pve:~# python3 -m pip install wheel
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
root@pve:~#
Les logs:
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 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
Je n’ai pas trouvé d’autres manip à faire. Merci