Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

get_swagger_spec causes AttributeError: 'Namespace' object has no attribute 'x_google_api_name' #189

Description

@realgsong

Repro

  1. clone https://github.com/GoogleCloudPlatform/python-docs-samples
  2. cd ~/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo
  3. pip install --system -t lib google-endpoints>=4.8.0
  4. python ./lib/endpoints/endpointscfg.py get_swagger_spec main.api

Error

Traceback (most recent call last):
  File "./lib/endpoints/endpointscfg.py", line 31, in <module>
    main(sys.argv)
  File "/home/ksbae/python-docs-samples/appengine/standard/endpoints/backend/lib/endpoints/_endpointscfg_impl.py", line 617, in main
    args.callback(args)
  File "/home/ksbae/python-docs-samples/appengine/standard/endpoints/backend/lib/endpoints/_endpointscfg_impl.py", line 465, in _GenOpenApiSpecCallback
    x_google_api_name=args.x_google_api_name)

Please tell me if I'm missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions