Build Libraries on Windows 10 NOT complete successfully
See original GitHub issuePlugin Version or Commit ID
v0.8.3
Unity Version
2020.3.30f1
Your Host OS
Windows 10
Target Platform
UnityEditor
[Windows Only] Visual Studio C++ and Windows SDK Version
VisualStudio C++: 14.29.30133 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 -vv
Log
E:\SVN\YZDH\VideoBasedFacialAnim\MediaPipeUnityPlugin>python build.py build --desktop cpu --include_opencv_libs -vv
INFO (build.py): Building protobuf sources…
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="D://Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures //mediapipe_api:mediapipe_proto_srcs
DEBUG: C:/_bzl/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘com_google_absl’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘com_google_benchmark’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘pybind11_bazel’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘com_google_protobuf’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘com_google_googletest’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/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/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘rules_python’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/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/pvzfk72w/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/pvzfk72w/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/pvzfk72w/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository ‘xctestrunner’ because it already exists.
DEBUG: C:/_bzl/pvzfk72w/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:
E:/svn/yzdh/videobasedfacialanim/mediapipeunityplugin/WORKSPACE:31:23: in <toplevel>
C:/_bzl/pvzfk72w/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/pvzfk72w/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 “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 181, column 30, in _git_repository_implementation
update = _clone_or_update(ctx)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 36, column 20, in clone_or_update
git = git_repo(ctx, directory)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 91, column 12, in git_repo
_update(ctx, git_repo)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 103, column 10, in _update
fetch(ctx, git_repo)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 136, column 13, in fetch
_git(
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 169, column 15, in _git
_error(ctx.name, start + list(args), st.stderr)
File “C:/_bzl/pvzfk72w/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 fetch origin refs/heads/:refs/remotes/origin/ refs/tags/:refs/tags/’ while working with @rules_python:
BUG: run-command.c:513: disabling cancellation: Invalid argument
0 [main] git 1265 cygwin_exception::open_stackdumpfile: Dumping stack trace to git.exe.stackdump
ERROR: Error fetching repository: Traceback (most recent call last):
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 181, column 30, in _git_repository_implementation
update = _clone_or_update(ctx)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git.bzl”, line 36, column 20, in clone_or_update
git = git_repo(ctx, directory)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 91, column 12, in git_repo
_update(ctx, git_repo)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 103, column 10, in _update
fetch(ctx, git_repo)
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 136, column 13, in fetch
_git(
File “C:/_bzl/pvzfk72w/external/bazel_tools/tools/build_defs/repo/git_worker.bzl”, line 169, column 15, in _git
_error(ctx.name, start + list(args), st.stderr)
File “C:/_bzl/pvzfk72w/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 fetch origin refs/heads/:refs/remotes/origin/ refs/tags/:refs/tags/’ while working with @rules_python:
BUG: run-command.c:513: disabling cancellation: Invalid argument
0 [main] git 1265 cygwin_exception::open_stackdumpfile: Dumping stack trace to git.exe.stackdump
ERROR: E:/svn/yzdh/videobasedfacialanim/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 fetch origin refs/heads/:refs/remotes/origin/ refs/tags/:refs/tags/’ while working with @rules_python:
BUG: run-command.c:513: disabling cancellation: Invalid argument
0 [main] git 1265 cygwin_exception::open_stackdumpfile: Dumping stack trace to git.exe.stackdump
ERROR: Analysis of target ‘//mediapipe_api:mediapipe_proto_srcs’ failed; build aborted: Analysis failed
INFO: Elapsed time: 6.517s
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 “E:\SVN\YZDH\VideoBasedFacialAnim\MediaPipeUnityPlugin\build.py”, line 448, in <module>
Argument().command().run()
File “E:\SVN\YZDH\VideoBasedFacialAnim\MediaPipeUnityPlugin\build.py”, line 114, in run
self._run_command(self._build_proto_srcs_commands())
File “E:\SVN\YZDH\VideoBasedFacialAnim\MediaPipeUnityPlugin\build.py”, line 54, in _run_command
return subprocess.run(’ '.join(command_list), check=True, shell=shell)
File “D:\Python39\lib\subprocess.py”, line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH=“D://Python39//python.exe” --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures //mediapipe_api:mediapipe_proto_srcs’ returned non-zero exit status 1.
Additional Context
I followed the Installation guide in https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide and added everything needed to the %Path% environment varible.
I tried with python 3.9.6, azel 4.2.1, vs 2019, nuget 5.10.0.
I run the build command in cmd.exe and got errors in the log file. I will try the [Docker Windows Container] on my windows 10 enterprise, but i’d appreciate it if you could help me.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Thanks a lot. I built successfully by [Docker Windows Container] .
It depends on your machine. Especially it tends to take a lot of time to install Visual Studio. Note that you may need to remove folders under
$Recycle.Bin
repeatedly.