mediapipe
mediapipe copied to clipboard
Action failed to execute: ... CreateProcessW ... : Access is denied
OS Platform and Distribution
Windows 11 Home
Compiler version
BAZEL_VC=D:\Program Files\Microsoft Visual Studio\2022\Community\VC
Programming Language and version
C++ 14.40.33810
Installed using virtualenv? pip? Conda?(if python)
No response
MediaPipe version
0.10.15
Bazel version
1.20.0
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
3.4.10
Describe the problem
Build failure for hello world example. I have been following this to install mediapipe for Windows. Build fails with following log
Complete Logs
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C://Users//username//AppData//Local//Programs//Python//Python36//python.exe" mediapipe/examples/desktop/hello_world --verbose_failures
WARNING: C:/projects/username/testings/mediapipe/mediapipe/framework/BUILD:69:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: C:/projects/username/testings/mediapipe/mediapipe/framework/tool/BUILD:201:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/examples/desktop/hello_world:hello_world (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: C:/users/username/_bazel_username/baqhqg4q/external/com_github_gflags_gflags/BUILD:16:30: Executing genrule @com_github_gflags_gflags//:gflags_google_h failed: (Exit -1): VC failed: error executing command (from target @com_github_gflags_gflags//:gflags_google_h)
cd /d C:/users/username/_bazel_username/baqhqg4q/execroot/mediapipe
SET PATH=C:\Program Files\Microsoft Visual Studio\2022\Community;C:\WINDOWS;C:\WINDOWS\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\username\AppData\Local\bazelisk\downloads\sha256\1d997d344936a1d98784ae58db1152d083569556f85cd845e6e340ee855357f9\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Git\cmd;C:\msys64\usr\bin;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Users\username\AppData\Local\Programs\Python\Python36;C:\Users\username\AppData\Local\Programs\Python\Python36\Scripts;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\username\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\username\AppData\Local\Programs\Python\Python36\;C:\Users\username\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\username\AppData\Local\Programs\Python\Python312\;C:\Users\username\AppData\Local\Programs\Python\Launcher\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\AppData\Local\GitHubDesktop\bin;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\.dotnet\tools
SET PYTHON_BIN_PATH=C://Users//username//AppData//Local//Programs//Python//Python36//python.exe
SET RUNFILES_MANIFEST_ONLY=1
C:\Program Files\Microsoft Visual Studio\2022\Community\VC -c source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@ns@/, "google"); gsub(/@NS@/, "GOOGLE"); print; }' external/com_github_gflags_gflags/src/gflags_ns.h.in > bazel-out/x64_windows-opt/bin/external/com_github_gflags_gflags/gflags_google.h
# Configuration: f42026f375a72f0d178afcb61d4f9c3822306c45d8a4ff1f122b6545ea678b1a
# Execution platform: @local_execution_config_platform//:platform
Action failed to execute: java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\Program Files\Microsoft Visual Studio\2022\Community\VC" -c "source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@ns@/, \"google\"); gsub(/@NS@/, \"GOOGLE\"); print; }' external/com_github_gflags_gflags/src/gflags_ns.h.in > bazel-out/x64_windows-opt/bin/external/com_github_gflags_gflags/gflags_google.h"): Access is denied.
(error: 5)
ERROR: C:/users/username/_bazel_username/baqhqg4q/external/com_github_gflags_gflags/BUILD:16:30: Executing genrule @com_github_gflags_gflags//:gflags_declare_h failed: (Exit -1): VC failed: error executing command (from target @com_github_gflags_gflags//:gflags_declare_h)
cd /d C:/users/username/_bazel_username/baqhqg4q/execroot/mediapipe
SET PATH=C:\Program Files\Microsoft Visual Studio\2022\Community;C:\WINDOWS;C:\WINDOWS\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\username\AppData\Local\bazelisk\downloads\sha256\1d997d344936a1d98784ae58db1152d083569556f85cd845e6e340ee855357f9\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Git\cmd;C:\msys64\usr\bin;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Users\username\AppData\Local\Programs\Python\Python36;C:\Users\username\AppData\Local\Programs\Python\Python36\Scripts;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\username\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\username\AppData\Local\Programs\Python\Python36\;C:\Users\username\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\username\AppData\Local\Programs\Python\Python312\;C:\Users\username\AppData\Local\Programs\Python\Launcher\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\AppData\Local\GitHubDesktop\bin;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\.dotnet\tools
SET PYTHON_BIN_PATH=C://Users//username//AppData//Local//Programs//Python//Python36//python.exe
SET RUNFILES_MANIFEST_ONLY=1
C:\Program Files\Microsoft Visual Studio\2022\Community\VC -c source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@GFLAGS_NAMESPACE@/, "gflags"); gsub(/@(HAVE_STDINT_H|HAVE_SYS_TYPES_H|HAVE_INTTYPES_H|GFLAGS_INTTYPES_FORMAT_C99)@/, "1"); gsub(/@([A-Z0-9_]+)@/, "0"); print; }' external/com_github_gflags_gflags/src/gflags_declare.h.in > bazel-out/x64_windows-opt/bin/external/com_github_gflags_gflags/gflags_declare.h
# Configuration: f42026f375a72f0d178afcb61d4f9c3822306c45d8a4ff1f122b6545ea678b1a
# Execution platform: @local_execution_config_platform//:platform
Action failed to execute: java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\Program Files\Microsoft Visual Studio\2022\Community\VC" -c "source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@GFLAGS_NAMESPACE@/, \"gflags\"); gsub(/@(HAVE_STDINT_H|HAVE_SYS_TYPES_H|HAVE_INTTYPES_H|GFLAGS_INTTYPES_FORMAT_C99)@/, \"1\"); gsub(/@([A-Z0-9_]+)@/, \"0\"); print; }' external/com_github_gflags_gflags/src/gflags_declare.h.in > bazel-out/x64_windows-opt/bin/external/com_github_gflags_gflags/gflags_declare.h"): Access is denied.
(error: 5)
ERROR: C:/users/username/_bazel_username/baqhqg4q/external/com_github_gflags_gflags/BUILD:16:30: Executing genrule @com_github_gflags_gflags//:gflags_completions_h failed: (Exit -1): VC failed: error executing command (from target @com_github_gflags_gflags//:gflags_completions_h)
cd /d C:/users/username/_bazel_username/baqhqg4q/execroot/mediapipe
SET PATH=C:\Program Files\Microsoft Visual Studio\2022\Community;C:\WINDOWS;C:\WINDOWS\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\username\AppData\Local\bazelisk\downloads\sha256\1d997d344936a1d98784ae58db1152d083569556f85cd845e6e340ee855357f9\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Git\cmd;C:\msys64\usr\bin;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Users\username\AppData\Local\Programs\Python\Python36;C:\Users\username\AppData\Local\Programs\Python\Python36\Scripts;;C:\Program Files\Docker\Docker\resources\bin;C:\Users\username\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\username\AppData\Local\Programs\Python\Python36\;C:\Users\username\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\username\AppData\Local\Programs\Python\Python312\;C:\Users\username\AppData\Local\Programs\Python\Launcher\;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\AppData\Local\GitHubDesktop\bin;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\.dotnet\tools
SET PYTHON_BIN_PATH=C://Users//username//AppData//Local//Programs//Python//Python36//python.exe
SET RUNFILES_MANIFEST_ONLY=1
C:\Program Files\Microsoft Visual Studio\2022\Community\VC -c source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@GFLAGS_NAMESPACE@/, "gflags"); print; }' external/com_github_gflags_gflags/src/gflags_completions.h.in > bazel-out/x64_windows-opt/bin/external/com_github_gflags_gflags/gflags_completions.h
# Configuration: f42026f375a72f0d178afcb61d4f9c3822306c45d8a4ff1f122b6545ea678b1a
# Execution platform: @local_execution_config_platform//:platform
Action failed to execute: java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\Program Files\Microsoft Visual Studio\2022\Community\VC" -c "source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@GFLAGS_NAMESPACE@/, \"gflags\"); print; }' external/com_github_gflags_gflags/src/gflags_completions.h.in > bazel-out/x64_windows-opt/bin/external/com_github_gflags_gflags/gflags_completions.h"): Access is denied.
(error: 5)
Target //mediapipe/examples/desktop/hello_world:hello_world failed to build
INFO: Elapsed time: 0.541s, Critical Path: 0.22s
INFO: 16 processes: 16 internal.
FAILED: Build did NOT complete successfully