Skip to content

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

Open
@Noir-

Description

@Noir-

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions