Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Error while using the python backend via setting the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python env var #232

Closed
@eapolinario

Description

@eapolinario

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":

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

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!

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions