Error while using the python backend via setting the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python env var
type: bugpriority: p1
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](https://cloud.google.com/support/) 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
1. Run `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python -c "from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2"`
#### Code example
```python
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!
关闭于 2024-06-19 2 条评论