Repository: homuler/MediaPipeUnityPlugin

Issue #464: error: Either the path attribute of android_ndk_repository or the ANDROID_NDK_HOME environment variable must be set.
Created: 2022-02-23T14:14:23Z
Plugin Version or Commit ID
v0.8.2
Unity Version
2019.4.18f1
Your Host OS
Windows 10
Target Platform
UnityEditor
[Windows Only] Visual Studio C++ and Windows SDK Version
Visual Studio C++ : 14.29.30133
Windows SDK :  10.0.18362.0
[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
Command Sequences
python build.py build --desktop cpu --include_opencv_libs -v
Log
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//gooma//Desktop//Python//pythonProject//InFProjects//efacec//venv-efacec// Scripts//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapip e_api:mediapipe_proto_srcs
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class java.io.File
NotFoundException GET returned 404 Not Found
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class java.io.FileNotFoundException
GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a32ecd248dd7612d75d2177125ed14541367.tar.gz failed: class java.io.Fil
eNotFoundException GET returned 404 Not Found
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: C:/_bzl/mxecnww6/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
ERROR: C:/users/gooma/desktop/python/pythonproject/infprojects/efacec/unitymediapipe/mediapipeunityplugin/WORKSPACE:327:23: fetching android_ndk_repository rule //external:androidndk: Eit
her the path attribute of android_ndk_repository or the ANDROID_NDK_HOME environment variable must be set.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
C:/users/gooma/desktop/python/pythonproject/infprojects/efacec/unitymediapipe/mediapipeunityplugin/WORKSPACE:31:23: in 
C:/_bzl/mxecnww6/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/mxecnww6/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/mxecnww6/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in 
ERROR: Analysis of target '//mediapipe_api:mediapipe_proto_srcs' failed; build aborted: Either the path attribute of android_ndk_repository or the ANDROID_NDK_HOME environment variable mu
st be set.
INFO: Elapsed time: 0.149s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
currently loading: @com_google_mediapipe//mediapipe/modules/objectron/calculators ... (11 packages)
Fetching @com_google_protobuf; fetching
Fetching @local_config_cc_toolchains; Restarting.
Fetching @rules_foreign_cc_framework_toolchain_macos_commands; fetching
Fetching @rules_foreign_cc_framework_toolchain_windows_commands; fetching
Fetching @ninja_1.10.2_toolchains; fetching
Fetching @rules_foreign_cc_framework_toolchain_linux_commands; fetching
Traceback (most recent call last):
File "C:\Users\gooma\Desktop\Python\pythonProject\InFProjects\efacec\UnityMediapipe\MediaPipeUnityPlugin\build.py", line 451, in 
Argument().command().run()
File "C:\Users\gooma\Desktop\Python\pythonProject\InFProjects\efacec\UnityMediapipe\MediaPipeUnityPlugin\build.py", line 113, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\gooma\Desktop\Python\pythonProject\InFProjects\efacec\UnityMediapipe\MediaPipeUnityPlugin\build.py", line 53, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Users\gooma\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//gooma//Desktop//Python//pythonProject//InFProjects//efacec//
venv-efacec//Scripts//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISI
ON //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.
Additional Context
No response

Duplicate issue #467: Uncomplete build
Created: 2022-02-25T23:36:49Z
Plugin Version or Commit ID
idk
Unity Version
2020.3.20f1
Your Host OS
Windows 10 Home
Target Platform
UnityEditor
[Windows Only] Visual Studio C++ and Windows SDK Version
Visual studio = 16.11.5
Windows SDK= 10.0.19041.0
[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
Command Sequences
python build.py build --desktop cpu --include_opencv_libs -v
Log
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH=C://Users//USUARIO//AppData//Local//Microsoft//WindowsApps//python.exe --verbose_failures //mediapipe_api:mediapipe_proto_srcs
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: C:/_bzl/jxtrex3m/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
ERROR: C:/users/usuario/desktop/tfg/aprender/mediapipe/mediapipeunityplugin/WORKSPACE:288:23: fetching android_ndk_repository rule //external:androidndk: Either the path attribute of android_ndk_repository or the ANDROID_NDK_HOME environment variable must be set.
ERROR: Analysis of target '//mediapipe_api:mediapipe_proto_srcs' failed; build aborted: Either the path attribute of android_ndk_repository or the ANDROID_NDK_HOME environment variable must be set.
INFO: Elapsed time: 0.507s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
currently loading: @com_google_mediapipe//mediapipe/modules/face_geometry/protos ... (6 packages)
Fetching @local_config_cc_toolchains; fetching
Fetching @AndroidSDK; Restarting.
Fetching @com_google_protobuf; fetching
Traceback (most recent call last):
File "C:\Users\USUARIO\Desktop\TFG\Aprender\mediapipe\MediaPipeUnityPlugin\build.py", line 392, in 
Argument().command().run()
File "C:\Users\USUARIO\Desktop\TFG\Aprender\mediapipe\MediaPipeUnityPlugin\build.py", line 109, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\USUARIO\Desktop\TFG\Aprender\mediapipe\MediaPipeUnityPlugin\build.py", line 51, in _run_command
return subprocess.run(command_list, check=True)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bazel', '--output_user_root', 'C:/_bzl', 'build', '-c', 'opt', '--action_env', 'PYTHON_BIN_PATH=C://Users//USUARIO//AppData//Local//Microsoft//WindowsApps//python.exe', '--verbose_failures', '//mediapipe_api:mediapipe_proto_srcs']' returned non-zero exit status 1.
Additional Context
No response

Closing comment (2022-02-26T03:07:26Z): duplicates #464