GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TypeError: Couldn't build proto file into descriptor pool: Depends on file 'google/longrunning/operations.proto', but it has not been loaded · Issue #18478 · googleapis/google-cloud-python

TypeError: Couldn't build proto file into descriptor pool: Depends on file 'google/longrunning/operations.proto', but it has not been loaded #18478

New issue
Copy link
New issue
Copy link
Closed
#18477
Closed
TypeError: Couldn't build proto file into descriptor pool: Depends on file 'google/longrunning/operations.proto', but it has not been loaded#18478
#18477
Copy link
Assignees
parthea
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.

Description

@parthea
parthea
opened on Sep 26, 2026
Issue body actions

PR #18461 introduced a regression which caused the following error in downstream builds (Googlers see b/566289715 and b/566222096).

Reproduction steps:

  1. Run pip install googleapis-common-protos==1.75.4 , or git checkout googleapis-common-protos-v1.75.4
  2. Run this code
from google.protobuf import descriptor_pb2, descriptor_pool
# Ensure operations_pb2 is imported and registered
from google.longrunning import operations_pb2  # noqa: F401

pool = descriptor_pool.Default()

# Construct a synthetic downstream FileDescriptorProto depending on operations.proto
downstream_file = descriptor_pb2.FileDescriptorProto()
downstream_file.name = "google/test/downstream_operations_test.proto"
downstream_file.package = "google.test"
downstream_file.dependency.append("google/longrunning/operations.proto")

# Add to pool: raises TypeError if 'google/longrunning/operations.proto' is missing
file_descriptor = pool.Add(downstream_file)
  1. See the stack trace below
>>> from google.protobuf import descriptor_pb2, descriptor_pool
>>> # Ensure operations_pb2 is imported and registered
>>> from google.longrunning import operations_pb2  # noqa: F401
>>> 
>>> pool = descriptor_pool.Default()
>>> 
>>> # Construct a synthetic downstream FileDescriptorProto depending on operations.proto
>>> downstream_file = descriptor_pb2.FileDescriptorProto()
>>> downstream_file.name = "google/test/downstream_operations_test.proto"
>>> downstream_file.package = "google.test"
>>> downstream_file.dependency.append("google/longrunning/operations.proto")
>>> 
>>> # Add to pool: raises TypeError if 'google/longrunning/operations.proto' is missing
>>> file_descriptor = pool.Add(downstream_file)
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
    file_descriptor = pool.Add(downstream_file)
TypeError: Couldn't build proto file into descriptor pool: Depends on file 'google/longrunning/operations.proto', but it has not been loaded
  1. Repeat steps 1 - 3 using pip install googleapis-common-protos==1.75.3 , or git checkout googleapis-common-protos-v1.75.3 and observe code executes successfully

Activity

  1. parthea
    self-assigned this
    on Sep 26, 2026
  2. parthea
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Sep 26, 2026
  3. parthea
    closed this as completedin #18477on Sep 29, 2026
  4. parthea
    added a commit that references this issue on Sep 29, 2026

    fix: resolve error where google/longrunning/operations.proto is missi…

    This issue will close once commit e1d306a is merged into the 'main' branch.
    e1d306a
  5. JoeWang1127
    added a commit that references this issue on Sep 29, 2026

    chore: release main (#18464)

    d6bed5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @parthea
    parthea

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.