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.

subprocess.CalledProcessError: Command 'bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.

See original GitHub issue

Plugin 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): Runningbazel 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

image

Screenshot/Video

No response

Additional Context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
homulercommented, Jun 25, 2022

@KaramBelmoujoud

/bin/bash: line 1: $‘\r’: command not found

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.

1reaction
homulercommented, Jun 24, 2022

@moarorleslie

Is 0.9.x unbuildable since the target is removed?

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.

I need to stay on Unity 2020.3.x and saw that latest release uses Unity 2021.3

The sample scenes are only tested with Unity 2021.3, but the exported package should work fine with Unity 2020.3.x.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command '['bazel', '--batch', '--bazelrc=/dev/null', 'version']' ...
I seem to have a problem building on the make step (Ubuntu 20.04): lanctot@nife:~$ git ... 'version']' returned non-zero exit status 1. #216....
Read more >
CalledProcessError while installing Tensorflow using Bazel
1 Answer 1 ... Probably the problem is that the non appropriate version of bazel is installed. Run bazel version in the tensorflow...
Read more >
Bazel/Protobuf build errors: libstdc++ with non-system gcc - Ray
I'm trying to build ray using the build.sh command and it's failing. ... '//cpp:ray_cpp_pkg']' returned non-zero exit status 1.
Read more >
Commands and Options
This page covers the options that are available with various Bazel commands, such as bazel build , bazel run , and bazel test...
Read more >
Build fails with "protoc_wrapper failed" - Development
August 27, 2022, 9:06pm 1. I'm trying to compile anki from source, but I keep getting the following error message:
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