Help to resolve the below errors that I am getting in the command prompt.
See original GitHub issueSystem information :
- OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2): Windows 10 Pro
- Target (e.g. desktop cpu, android arm64): Desktop cpu/gpu
- Bazel version: 4.2.0
- Python version: 3.9.6
- GCC/G++ version:
- Unity version: 2020.3.17f1
- Android NDK version (if building for Android):
- Xcode version (if building for iOS):
Describe the problem : Hi, I am getting the errors in the command prompt when I run the below command : python build.py build --desktop cpu --include_opencv_libs -v
Full logs :
(env) D:\MediaPipie-Pose-Tracking\MediaPipeUnityPlugin>python build.py build --desktop cpu -v
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:////MediaPipie-Pose-Tracking//MediaPipeUnityPlugin//env//Scripts//python.exe //mediapipe_api:mediapipe_proto_srcs
Traceback (most recent call last):
File “D:\MediaPipie-Pose-Tracking\MediaPipeUnityPlugin\build.py”, line 392, in <module>
Argument().command().run()
File “D:\MediaPipie-Pose-Tracking\MediaPipeUnityPlugin\build.py”, line 109, in run
self._run_command(self._build_proto_srcs_commands())
File “D:\MediaPipie-Pose-Tracking\MediaPipeUnityPlugin\build.py”, line 51, in _run_command
return subprocess.run(command_list, check=True)
File “C:\\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 505, in run
with Popen(*popenargs, **kwargs) as process:
File “C:\\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “C:\\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Can you please help me to resolve the above errors.
Thanks in advance.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Manually add
shell=True
here seem to let me run bazelI am not proficient in python but I try to hack and log the error in those line directly like this
And it seem like this maybe a bug in subprocess lib itself that it not split
bazel
from the args into executable. So executable isnone
and not found