<#6578 [BUG] [flytekit] pyflyte register FileOptio...
# flyte-github
c
#6578 [BUG] [flytekit] pyflyte register FileOptions has no attribute RegisterExtension Issue created by tcuongd ### Flyte & Flytekit version Python deps:
Copy code
flytekit 1.16.1
flyteidl 1.16.0
protobuf 5.29.5
### Describe the bug
Copy code
pyflyte --version

Traceback (most recent call last):
  File ".venv/bin/pyflyte", line 4, in <module>
    from flytekit.clis.sdk_in_container.pyflyte import main
  File ".venv/lib/python3.12/site-packages/flytekit/__init__.py", line 154, in <module>
    from flytekit.remote import FlyteRemote
  File ".venv/lib/python3.12/site-packages/flytekit/remote/__init__.py", line 58, in <module>
    from flytekit.remote.remote import FlyteRemote
  File "venv/lib/python3.12/site-packages/flytekit/remote/remote.py", line 37, in <module>
    from flytekit.clients.friendly import SynchronousFlyteClient
  File ".venv/lib/python3.12/site-packages/flytekit/clients/friendly.py", line 18, in <module>
    from flyteidl.service import dataproxy_pb2 as _data_proxy_pb2
  File ".venv/lib/python3.12/site-packages/flyteidl/service/dataproxy_pb2.py", line 15, in <module>
    from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2
  File ".venv/lib/python3.12/site-packages/protoc_gen_openapiv2/options/annotations_pb2.py", line 23, in <module>
    google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(openapiv2_swagger)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'FileOptions' has no attribute 'RegisterExtension'
Interestingly this only happens on my x86 Linux machine and not my arm64 Mac. I'm not sure if there's a linking / version issue here with protobuf. ### Expected behavior Can run
pyflyte
binary installed in venv. ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte