Skip to content

Python bindings broken due to use of depricated protobuf APIs #2008

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

Open
Noir- opened this issue May 22, 2025 · 0 comments
Open

Python bindings broken due to use of depricated protobuf APIs #2008

Noir- opened this issue May 22, 2025 · 0 comments

Comments

@Noir-
Copy link

Noir- commented May 22, 2025

The current Python bindings use one or more deprecated APIs from google.protobuf.

from ola.OlaClient import OlaClient
  File "/opt/homebrew/opt/ola/libexec/lib/python3.13/site-packages/ola/OlaClient.py", line 23, in <module>
    from ola.rpc.SimpleRpcController import SimpleRpcController
  File "/opt/homebrew/opt/ola/libexec/lib/python3.13/site-packages/ola/rpc/SimpleRpcController.py", line 18, in <module>
    from google.protobuf import service
ImportError: cannot import name 'service' from 'google.protobuf' (/Users/noir/projects/light/ola/ola-0.10.8/pybuild/lib/python3.13/site-packages/google/protobuf/__init__.py)

This was deprecated in the beginning of 2025. I believe the latest compatible version is 5.29.3. (Quick fix is installing the lib with pip install protobuf==5.29.3)
Please consider to switch to the latest protobuf APIs.

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

1 participant