Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf incompatibility #5

Open
petersohn opened this issue Jun 29, 2022 · 3 comments
Open

Protobuf incompatibility #5

petersohn opened this issue Jun 29, 2022 · 3 comments

Comments

@petersohn
Copy link

I have python-clementine-remote 1.0.3 installed from pip. When trying to run the client, I get the following error message:

Traceback (most recent call last):
  File "/home/petersohn/.local/bin/clementine-remote", line 5, in <module>
    from clementineremote.cli import main
  File "/home/petersohn/.local/lib/python3.9/site-packages/clementineremote/__init__.py", line 17, in <module>
    from .clementine import ClementineRemote
  File "/home/petersohn/.local/lib/python3.9/site-packages/clementineremote/clementine.py", line 21, in <module>
    import clementineremote.remotecontrolmessages_pb2 as cr
  File "/home/petersohn/.local/lib/python3.9/site-packages/clementineremote/remotecontrolmessages_pb2.py", line 32, in <module>
    _descriptor.EnumValueDescriptor(
  File "/home/petersohn/.local/lib/python3.9/site-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

I have protobuf 4.21.2 installed from pip.

@NathanSalapat
Copy link

I am having the same issue, trying to connect to my Clementine players via homeassistant.

@fantafe
Copy link

fantafe commented Aug 22, 2023

I am also having the same issue to connect to Clementine player via homeassistant. I get the following error when trying to integrate through configuration.yaml.

"Platform error media_player.clementine - Exception importing homeassistant.components.clementine.media_player
"

@martin3000
Copy link

martin3000 commented Sep 23, 2023

I created PR #7
(pull request)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants