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

bazel build fails with setuptools 60.7.0 #1182

Closed
parthea opened this issue Feb 2, 2022 · 1 comment
Closed

bazel build fails with setuptools 60.7.0 #1182

parthea opened this issue Feb 2, 2022 · 1 comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@parthea
Copy link
Contributor

parthea commented Feb 2, 2022

See output here:

Traceback (most recent call last):
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python/gapic/cli/generate.py", line 23, in <module>
    from gapic import generator
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python/gapic/generator/__init__.py", line 21, in <module>
    from .generator import Generator
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python/gapic/generator/generator.py", line 27, in <module>
    from gapic.samplegen_utils import snippet_index, snippet_metadata_pb2
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python/gapic/samplegen_utils/snippet_index.py", line 20, in <module>
    from gapic.schema import api, metadata
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python/gapic/schema/__init__.py", line 23, in <module>
    from gapic.schema.api import API
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python/gapic/schema/api.py", line 35, in <module>
    from google.longrunning import operations_pb2  # type: ignore
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__googleapis_common_protos/google/longrunning/operations_pb2.py", line 23, in <module>
    from google.longrunning.operations_grpc_pb2 import *
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__googleapis_common_protos/google/longrunning/operations_grpc_pb2.py", line 5, in <module>
    from google.longrunning.operations_proto_pb2 import *
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__googleapis_common_protos/google/longrunning/operations_proto_pb2.py", line 35, in <module>
    from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__googleapis_common_protos/google/rpc/__init__.py", line 18, in <module>
    import pkg_resources
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__setuptools/pkg_resources/__init__.py", line 74, in <module>
    from pkg_resources.extern.jaraco.text import (
  File "/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__setuptools/pkg_resources/_vendor/jaraco/text/__init__.py", line 227, in <module>
    lorem_ipsum: str = files(__name__).joinpath('Lorem ipsum.txt').read_text()
  File "/usr/local/lib/python3.8/pathlib.py", line 1235, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/local/lib/python3.8/pathlib.py", line 1221, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/local/lib/python3.8/pathlib.py", line 1077, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/github/home/.cache/bazel/_bazel_root/e9fc40f6defbd5492f3d1bc9251d68a4/sandbox/processwrapper-sandbox/1439/execroot/gapic_generator_python/bazel-out/host/bin/gapic_plugin.runfiles/gapic_generator_python_pip_deps/pypi__setuptools/pkg_resources/_vendor/jaraco/text/Lorem ipsum.txt'

PR #1179 adds a pin for setuptools<=60.5.0 to allow development to continue. See related issues here and here.

@parthea parthea added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Feb 2, 2022
@parthea
Copy link
Contributor Author

parthea commented Feb 7, 2022

Closed via #1184

@parthea parthea closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant