I'm following the steps at https://github.com/grpc/grpc/blob/master/BUILDING.md to build grpc from source for Ubuntu 18.04.4. So far I've executed the following commands successfully.
$ sudo apt-get install build-essential autoconf libtool pkg-config > $ sudo apt-get install libgflags-dev > $ sudo apt-get install clang-5.0 libc++-dev > $ git clone -b $(curl -L https://grpc.io/release) > https://github.com/grpc/grpc > $ cd grpc > When I try to build it with bazel, I get the following error - $ ~/private/bazel-2.0.0-linux-x86_64 build :all > Starting local Bazel server and connecting to it... > DEBUG: Rule 'io_bazel_rules_python' indicated that a canonical > reproducible form can be obtained by modifying arguments shallow_since = > "1523916428 -0700" > DEBUG: Call stack for the definition of repository 'io_bazel_rules_python' > which is a git_repository (rule definition at > /home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18): > - /nobackup/grpc/WORKSPACE:34:1 > ERROR: > /home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/io_bazel_rules_python/python/pip.bzl:39:25: > > Traceback (most recent call last): > File > "/home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/io_bazel_rules_python/python/pip.bzl", > > line 37 > repository_rule(<2 more arguments>) > File > "/home/nisargs/.cache/bazel/_bazel_nisargs/4e4151a9a278b0177b97ca89f46caad9/external/io_bazel_rules_python/python/pip.bzl", > > line 39, in repository_rule > attr.label(allow_files = True, <2 more arguments>) > 'single_file' is no longer supported. use allow_single_file instead. You > can use --incompatible_disable_deprecated_attr_params=false to temporarily > disable this check. > ERROR: error loading package '': Extension file 'python/pip.bzl' has errors > ERROR: error loading package '': Extension file 'python/pip.bzl' has errors > INFO: Elapsed time: 4.947s > INFO: 0 processes. > FAILED: Build did NOT complete successfully (0 packages loaded) How do I resolve this? Thanks Nisarg -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/ceb23682-9e22-4fb2-8038-69405bcdc051%40googlegroups.com.
