-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
subprocess.CalledProcessError: Command 'bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1. #621
Comments
First, make sure you can download https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz. Otherwise, it may be that your network is too slow. |
I am Unable to Download https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz tried various Proxies and Network network is 100Mbps but not downloading. @homuler Even unable to download from semote servers of different regions. |
and for the command I am getting error like |
I see. It looks like the target is removed.
|
Yes because my code runs on that build. |
Facing this issue as well. Is 0.9.x unbuildable since the target is removed? I need to stay on Unity 2020.3.x and saw that latest release uses Unity 2021.3 |
I don't know. At least, it still can be built in my environment (although we need to use
The sample scenes are only tested with Unity 2021.3, but the exported package should work fine with Unity 2020.3.x. |
i'm using the lastest comit and getting the same error.[mediapipe@06bb9f526efa ~]$ python build.py build --android arm64 -vv Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging i did try to use this command :python build.py build --bazel_build_opts "--experimental_scale_timeouts=10.0 --http_timeout_scaling=10.0" --android arm64 -vv but it return this as well :ERROR: /home/mediapipe/mediapipe_api/calculators/audio/BUILD:33:17: Executing genrule //mediapipe_api/calculators/audio:rational_factor_resample_calculator_cs failed: (Exit 127): bash failed: error executing command Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Also i am able to download https://github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz |
We don't call these things the same error. When an error occurred, check out the Troubleshooting page first. |
i don't know if this is a personal issue or related to building in Windows 11 but referring to clone this way @homuler thank you for your support and for your patience |
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): Running
bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcsLoading: 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
The text was updated successfully, but these errors were encountered: