Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.34.0 fails to generate grafeas v1 #626

Closed
busunkim96 opened this issue Sep 30, 2020 · 0 comments · Fixed by #627 or #1133
Closed

0.34.0 fails to generate grafeas v1 #626

busunkim96 opened this issue Sep 30, 2020 · 0 comments · Fixed by #627 or #1133
Assignees

Comments

@busunkim96
Copy link
Contributor

It looks related to the change in #619 to stabilize the list of retries. See 334615776 for the full log.

ERROR: /tmpfs/src/piper/google3/third_party/googleapis/grafeas/v1/BUILD.bazel:166:1: //grafeas/v1:grafeas_py_gapic: `bazel-out/host/bin/external/com_google_protobuf/protoc --experimental_allow_proto3_optional --plugin=protoc-gen-python_gapic=bazel-out/host/bin/external/gapic_generator_python/gapic_plugin --python_gapic_out=retry-config=grafeas/v1/grafeas_grpc_service_config.json:bazel-out/k8-fastbuild/bin/grafeas/v1/grafeas_py_gapic.srcjar.zip --python_gapic_opt=python-gapic-namespace=grafeas -Igrafeas/v1/attestation.proto=grafeas/v1/attestation.proto -Igrafeas/v1/build.proto=grafeas/v1/build.proto -Igrafeas/v1/common.proto=grafeas/v1/common.proto -Igrafeas/v1/cvss.proto=grafeas/v1/cvss.proto -Igrafeas/v1/deployment.proto=grafeas/v1/deployment.proto -Igrafeas/v1/discovery.proto=grafeas/v1/discovery.proto -Igrafeas/v1/grafeas.proto=grafeas/v1/grafeas.proto -Igrafeas/v1/image.proto=grafeas/v1/image.proto -Igrafeas/v1/package.proto=grafeas/v1/package.proto -Igrafeas/v1/provenance.proto=grafeas/v1/provenance.proto -Igrafeas/v1/upgrade.proto=grafeas/v1/upgrade.proto -Igrafeas/v1/vulnerability.proto=grafeas/v1/vulnerability.proto -Igoogle/api/annotations.proto=google/api/annotations.proto -Igoogle/api/http.proto=google/api/http.proto -Igoogle/protobuf/descriptor.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/descriptor_proto/google/protobuf/descriptor.proto -Igoogle/api/client.proto=google/api/client.proto -Igoogle/api/field_behavior.proto=google/api/field_behavior.proto -Igoogle/api/resource.proto=google/api/resource.proto -Igoogle/rpc/status.proto=google/rpc/status.proto -Igoogle/protobuf/any.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/any_proto/google/protobuf/any.proto -Igoogle/protobuf/empty.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/empty_proto/google/protobuf/empty.proto -Igoogle/protobuf/field_mask.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/field_mask_proto/google/protobuf/field_mask.proto -Igoogle/protobuf/timestamp.proto=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/_virtual_imports/timestamp_proto/google/protobuf/timestamp.proto grafeas/v1/attestation.proto grafeas/v1/build.proto grafeas/v1/common.proto grafeas/v1/cvss.proto grafeas/v1/deployment.proto grafeas/v1/discovery.proto grafeas/v1/grafeas.proto grafeas/v1/image.proto grafeas/v1/package.proto grafeas/v1/provenance.proto grafeas/v1/upgrade.proto grafeas/v1/vulnerability.proto` failed (Exit 1) protoc failed: error executing command bazel-out/host/bin/external/com_google_protobuf/protoc --experimental_allow_proto3_optional '--plugin=protoc-gen-python_gapic=bazel-out/host/bin/external/gapic_generator_python/gapic_plugin' ... (remaining 37 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
Traceback (most recent call last):
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/cli/generate_with_pandoc.py", line 9, in <module>
    generate.generate()
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__click_7_1_2/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__click_7_1_2/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__click_7_1_2/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__click_7_1_2/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/cli/generate.py", line 63, in generate
    res = generator.Generator(opts).get_response(api_schema, opts)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/generator/generator.py", line 100, in get_response
    template_name, api_schema=api_schema, opts=opts)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/generator/generator.py", line 285, in _render_template
    opts=opts,
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/generator/generator.py", line 313, in _get_file
    api=api_schema, opts=opts, **context
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__Jinja2_2_11_2/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__Jinja2_2_11_2/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python_pip_deps_pypi__Jinja2_2_11_2/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2", line 1, in top-level template code
    {% extends '_base.py.j2' %}
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/templates/_base.py.j2", line 5, in top-level template code
    {%- block content %}
  File "/tmpfs/tools/bazel_root/9c17b202d88c490a45ea631b0d45ecee/sandbox/linux-sandbox/3636/execroot/com_google_googleapis/bazel-out/host/bin/external/gapic_generator_python/gapic_plugin.runfiles/gapic_generator_python/gapic/templates/%namespace/%name_%version/%sub/services/%service/async_client.py.j2", line 206, in block "content"
    {%- for ex in method.retry.retryable_exceptions|sort(attribue='__name__') %}
TypeError: do_sort() got an unexpected keyword argument 'attribue'
--python_gapic_out: protoc-gen-python_gapic: Plugin failed with status code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment