Error while using the python backend via setting the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python env var
eapolinario opened this issue · 2 comments
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
- Search the issues already opened: https://github.com/googleapis/python-api-common-protos/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
If you are still having issues, please be sure to include as much information as possible:
Environment details
- OS type and version: macos 14.3.1
- Python version:
Python 3.12.0
- pip version:
pip 23.2.1
googleapis-common-protos
version:1.63.1
Steps to reproduce
- Run
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python -c "from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2"
Code example
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
Stack trace
❯ PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python -c "from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/p4/qvgny9x95p5_vhdc7gxh2hsc0000gn/T/tmp.PDzj6xgKa5/venv/lib/python3.12/site-packages/google/api/annotations_pb2.py", line 44, in <module>
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'MethodOptions' has no attribute 'RegisterExtension'
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
This is also causing gRPC CI tests failing: https://fusion2.corp.google.com/invocations/e74f6411-9170-40c5-af32-b634d85d6d6d/log
This was fixed in pre-release version 1.63.2rc0: https://pypi.org/project/googleapis-common-protos/1.63.2rc0/
A formal release will be published on Monday.