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 — Naming conflict when importing `ga_operation` · Issue #819 · googleapis/gapic-generator-python

This repository was archived by the owner on Aug 25, 2026. It is now read-only.
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Naming conflict when importing ga_operation #819

Copy link
Copy link
Closed
#1133
#820
Closed
Naming conflict when importing ga_operation#819
#1133
#820
Copy link
Assignees
parthea
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@parthea
parthea
opened on Mar 22, 2021
Issue body actions

I'm having trouble generating the client for appengine v1 and I found the issue is that there is a naming conflict with ga_operation

In client.py, ga_operation has a naming conflict.

from google.api_core import operation as ga_operation

conflicts with

from google.cloud.appengine_admin_v1.types import operation as ga_operation
__________________________________ ERROR collecting tests/unit/gapic/appengine_admin_v1/test_applications.py __________________________________
tests/unit/gapic/appengine_admin_v1/test_applications.py:38: in <module>
    from google.cloud.appengine_admin_v1.services.applications import (
google/cloud/appengine_admin_v1/__init__.py:18: in <module>
    from .services.applications import ApplicationsClient
google/cloud/appengine_admin_v1/services/applications/__init__.py:18: in <module>
    from .client import ApplicationsClient
google/cloud/appengine_admin_v1/services/applications/client.py:78: in <module>
    class ApplicationsClient(metaclass=ApplicationsClientMeta):
google/cloud/appengine_admin_v1/services/applications/client.py:392: in ApplicationsClient
    ) -> ga_operation.Operation:
E   AttributeError: module 'google.cloud.appengine_admin_v1.types.operation' has no attribute 'Operation'

Activity

  1. parthea
    self-assigned this
    on Mar 22, 2021
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    on Mar 23, 2021
  3. parthea
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    and removed
    triage meI really want to be triaged.
    on Mar 23, 2021
  4. software-dov commented on Mar 23, 2021

    @software-dov
    software-dov
    on Mar 23, 2021
    Contributor
    More actions

    Root cause turns out to be that raw imports in e.g. test template are not being added to name disambiguation. Fix is to add "auth" et al to RESERVED_NAMES.

  5. software-dov
    closed this as completedin #820on Mar 23, 2021
  6. software-dov
    added a commit that references this issue on Mar 23, 2021

    fix: Update module alias to resolve naming conflict (#820)

    This issue will close once commit f5e9f36 is merged into the 'main' branch.
    f5e9f36
  7. gcf-merge-on-green
    added a commit that references this issue on Mar 24, 2021

    chore: release 0.43.2 (#823)

    f9f95a6
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: p3Desirable enhancement or fix. May not be included in 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.