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.

Build Libraries on Windows 10 NOT complete successfully

See original GitHub issue

Plugin 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:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
HakuWangcommented, Mar 8, 2022

Note that you may need to remove folders under $Recycle.Bin repeatedly.

Thanks a lot. I built successfully by [Docker Windows Container] .

0reactions
homulercommented, Mar 5, 2022

Maybe it‘s normal that the building of image cost hours?

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAILED: Build did NOT complete successfully on windows 10
I am facing error trying to build tensorflow from source in windows 10. My goal is to use tensorflow API in C++. I...
Read more >
Windows backup or restore errors 0x80070001, ...
This issue occurs when you try to back up a specific library or when you accept the default settings in Windows Backup and...
Read more >
CMake with Boost library Windows 10 Library not found ...
The error i get from cmake is this: -- Building for: Visual Studio 12 2013 -- The C compiler identification is MSVC 18.0.31101.0...
Read more >
[SOLVED] Windows 10 Could Not Complete the Installation ...
Fix 4. Run the Installation in Clean Boot · Open Run dialog. · Type msconfig in the box and click OK to continue....
Read more >
Error building TensorFlow 2.8 in Windows 10
FAILED: Build did NOT complete successfully (50 packages loaded, 14 targets configured) currently loading: tensorflow/lite/python .
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