subprocess.CalledProcessError: Command 'bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.
See original GitHub issuePlugin Version or Commit ID
v0.9.0
Unity Version
2020.3.18
Your Host OS
Windows 10 Pro
Target Platform
Android
Target Device
Windows Docker
[Windows Only] Visual Studio C++ and Windows SDK Version
No response
[Linux Only] GCC/G++ and GLIBC Version
No response
[Android Only] Android Build Tools and NDK Version
No response
[iOS Only] XCode Version
No response
Build Command
python build.py build --android arm64 -vv
Bug Description
I am using Windows Docker for Build I am getting errors like this while building
python build.py build --android arm64 -vv
INFO (build.py): Building protobuf sources... DEBUG (build.py): Running
bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs Loading: 0 packages loaded Fetching @llvm-raw; fetching 23s Loading: 0 packages loaded Loading: 0 packages loaded Fetching @llvm-raw; fetching 125s Loading: 0 packages loaded Fetching @llvm-raw; fetching 158s INFO: Repository llvm-raw instantiated at: /home/mediapipe/WORKSPACE:428:14: in <toplevel> /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/tensorflow/workspace3.bzl:52:9: in workspace /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/llvm/workspace.bzl:10:20: in repo /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:126:21: in tf_http_archive Repository rule _tf_http_archive defined at: /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl:79:35: in <toplevel> WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class java.io.IOException Read timed out ERROR: An error occurred during the fetch of repository 'llvm-raw': Traceback (most recent call last): File "/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl", line 66, column 33, in _tf_http_archive_impl ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz, https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz] to /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/llvm-raw/temp9024392170098480921/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz: Read timed out ERROR: /home/mediapipe/WORKSPACE:428:14: fetching _tf_http_archive rule //external:llvm-raw: Traceback (most recent call last): File "/home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/org_tensorflow/third_party/repo.bzl", line 66, column 33, in _tf_http_archive_impl ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz, https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz] to /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/llvm-raw/temp9024392170098480921/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz: Read timed out ERROR: no such package '@llvm-raw//utils/bazel': java.io.IOException: Error downloading [https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz, https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz] to /home/mediapipe/.cache/bazel/_bazel_mediapipe/6c11c387a04fa8f17c87a5c6db6ee555/external/llvm-raw/temp9024392170098480921/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz: Read timed out INFO: Elapsed time: 163.313s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) Traceback (most recent call last): File "/home/mediapipe/build.py", line 436, in <module> Argument().command().run() File "/home/mediapipe/build.py", line 117, in run self._run_command(self._build_proto_srcs_commands()) File "/home/mediapipe/build.py", line 54, in _run_command return subprocess.run(' '.join(command_list), check=True, shell=shell) File "/usr/lib/python3.10/subprocess.py", line 524, 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.
Steps to Reproduce the Bug
Clone repo and checkout to v0.9.0
switch to linux containers
docker build -t mediapipe_unity:linux . -f docker/linux/x86_64/Dockerfile
docker run --cpus=2 --memory=12g --mount type=bind,src=%CD%\Packages,dst=/home/mediapipe/Packages --mount type=bind,src=%CD%\Assets,dst=/home/mediapipe/Assets -it mediapipe_unity:linux
python build.py build --android arm64 -vv
Log
Screenshot/Video
No response
Additional Context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
@KaramBelmoujoud
We don’t call these things the same error. See https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#binbash-line-1-r-command-not-found.
When an error occurred, check out the Troubleshooting page first.
@moarorleslie
I don’t know. At least, it still can be built in my environment (although we need to use
bazel
5.2.0 to work around #620 ). It seems that usually another mirror site would be picked up and the resource be downloaded at last.The sample scenes are only tested with Unity 2021.3, but the exported package should work fine with Unity 2020.3.x.