question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

intel Mac build error: "execvp(git, ...)": No such file or directory

See original GitHub issue

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2): Intel and macOS Monterey version 12.1
  • Target (e.g. desktop cpu, android arm64): desktop cpu
  • Bazel version: 4.2.1
  • Python version: 3.9.9
  • GCC/G++ version: Homebrew GCC 8.5.0
  • Unity version: 2020.3.23f1
  • Android NDK version (if building for Android):23.1.7779620
  • Xcode version (if building for iOS): 13.2.1

Describe the problem Build did NOT complete successfully @rules_pkg//:build_zip in repository @rules_pkg which failed to fetch. no such package ‘@rules_python//python’

Steps to reproduce the issue python build.py build --desktop cpu --opencv cmake -vv

Full logs INFO (build.py): Building protobuf sources… DEBUG (build.py): Running bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs WARNING: Ignoring JAVA_HOME, because it must point to a JDK, not a JRE. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘com_google_absl’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘com_google_benchmark’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘pybind11_bazel’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘com_google_protobuf’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘com_google_googletest’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘com_github_gflags_gflags’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘rules_python’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘build_bazel_rules_apple’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘build_bazel_rules_swift’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘build_bazel_apple_support’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘xctestrunner’ because it already exists. DEBUG: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/org_tensorflow/third_party/repo.bzl:122:14: Warning: skipping import of repository ‘pybind11’ because it already exists. INFO: Repository rules_python instantiated at: /Users/kk/Documents/Git/personal/Unity/MediaPipeUnityPlugin/WORKSPACE:31:23: in <toplevel> /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe Repository rule git_repository defined at: /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel> ERROR: An error occurred during the fetch of repository ‘rules_python’: Traceback (most recent call last): File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 181, column 30, in _git_repository_implementation update = _clone_or_update(ctx) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 36, column 20, in clone_or_update git = git_repo(ctx, directory) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 91, column 12, in git_repo _update(ctx, git_repo) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 101, column 9, in _update init(ctx, git_repo) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 118, column 15, in init _error(ctx.name, cl, st.stderr) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 190, column 9, in _error fail(“error running ‘%s’ while working with @%s:\n%s” % (command_text, name, stderr)) Error in fail: error running ‘git init /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/rules_python’ while working with @rules_python: src/main/tools/process-wrapper-legacy.cc:80: “execvp(git, …)”: No such file or directory ERROR: Error fetching repository: Traceback (most recent call last): File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 181, column 30, in _git_repository_implementation update = _clone_or_update(ctx) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 36, column 20, in clone_or_update git = git_repo(ctx, directory) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 91, column 12, in git_repo _update(ctx, git_repo) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 101, column 9, in _update init(ctx, git_repo) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 118, column 15, in init _error(ctx.name, cl, st.stderr) File “/private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 190, column 9, in _error fail(“error running ‘%s’ while working with @%s:\n%s” % (command_text, name, stderr)) Error in fail: error running ‘git init /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/rules_python’ while working with @rules_python: src/main/tools/process-wrapper-legacy.cc:80: “execvp(git, …)”: No such file or directory ERROR: /Users/kk/Documents/Git/personal/Unity/MediaPipeUnityPlugin/mediapipe_api/BUILD:193:8: //mediapipe_api:mediapipe_proto_srcs depends on @rules_pkg//:build_zip in repository @rules_pkg which failed to fetch. no such package ‘@rules_python//python’: error running ‘git init /private/var/tmp/_bazel_kk/b56e1e6e2c787b9f92dac898f2e56545/external/rules_python’ while working with @rules_python: src/main/tools/process-wrapper-legacy.cc:80: “execvp(git, …)”: No such file or directory ERROR: Analysis of target ‘//mediapipe_api:mediapipe_proto_srcs’ failed; build aborted: Analysis failed INFO: Elapsed time: 0.181s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured) currently loading: @rules_pkg// Traceback (most recent call last): File “/Users/kk/Documents/Git/personal/Unity/MediaPipeUnityPlugin/build.py”, line 451, in <module> Argument().command().run() File “/Users/kk/Documents/Git/personal/Unity/MediaPipeUnityPlugin/build.py”, line 113, in run self._run_command(self._build_proto_srcs_commands()) File “/Users/kk/Documents/Git/personal/Unity/MediaPipeUnityPlugin/build.py”, line 53, in _run_command return subprocess.run(’ '.join(command_list), check=True, shell=shell) File “/usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py”, line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command ‘bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs’ returned non-zero exit status 1. kk@mbp MediaPipeUnityPlugin % bazel -version [FATAL 12:18:28.980 src/main/cpp/blaze.cc:1293] Unknown startup option: ‘-version’. For more info, run ‘bazel help startup_options’. kk@mbp MediaPipeUnityPlugin % brew info bazel bazel: stable 4.2.2 (bottled) Google’s own build tool https://bazel.build/ Conflicts with: bazelisk (because Bazelisk replaces the bazel binary) Not installed From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/bazel.rb License: Apache-2.0 ==> Dependencies Build: python@3.10 ✔ Required: openjdk@11 ✔ ==> Analytics install: 5,275 (30 days), 17,342 (90 days), 66,510 (365 days) install-on-request: 5,043 (30 days), 16,746 (90 days), 65,045 (365 days) build-error: 51 (30 days) kk@mbp MediaPipeUnityPlugin % bazel --version bazel 4.2.1 kk@mbp MediaPipeUnityPlugin % python --version Python 3.9.9 kk@mbp MediaPipeUnityPlugin % gcc --version gcc (Homebrew GCC 8.5.0) 8.5.0 Copyright © 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Additional context I got a similar error with every Build Command.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
k0hh2commented, Jan 13, 2022

Sorry. I changed the version of NDK and the build was successful! Thank you so much.

0reactions
homulercommented, Jan 13, 2022

Please read the guide carefully. https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#android-configuration

Bazel does not support NDK >= r22, so you need to install NDK <= r21 instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gcc: error trying to exec 'as': execvp: No such file or directory
I was trying to install gcc and gfortran on my intel mac with mountain lion and keep getting the above error when trying...
Read more >
GitHub configuration terminal says "no such file or directory"
1 Answer. The error message isn't talking about the destination path; it's talking about the source path. In command 1, you're telling git...
Read more >
Error Message: No such file or Directory
Wrong path to the binary file or the binary file does not exist on the node01 . The name of the binary file...
Read more >
Brew can not find git - Ask Different
1 Answer. I suggest uninstalling homebrew and then reinstalling it and your packages following this guide. Although this would seem to be more ......
Read more >
sandbox-exec: execvp() of 'sh' failed: No such file or directory
I have a fresh installation of HighSierra MacPort, no migration from old ports. Below an extract from /opt/local/var/macports/logs/_ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found