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.

Help to resolve the below errors that I am getting in the command prompt.

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
Thainacommented, Sep 14, 2021

Manually add shell=True here seem to let me run bazel

image

0reactions
Thainacommented, Sep 14, 2021

I am not proficient in python but I try to hack and log the error in those line directly like this image

And it seem like this maybe a bug in subprocess lib itself that it not split bazel from the args into executable. So executable is none and not found

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use the Command Prompt to Find Windows Errors ...
The NET HELPMSG command helps convert error codes into strings, which you can use to find relevant solutions for the problem. However, this ......
Read more >
[Fixed] Command Prompt (CMD) Not Working/Opening ...
Restarting computer can sometimes help fix many minor computer issues. You can click Start -> Power -> Restart to reboot your Windows 10 ......
Read more >
Command Prompt Error
Go to Startup tab > Open Task Manager > Disable all the unnecessary services running there. Restart your computer. Please try to enable...
Read more >
How to Fix Command Prompt(CMD) Not Working/Opening in ...
I totally do not support any types of illegal acts or videos. The videos are completely for legal purposes. ✓Join this channel to...
Read more >
How to Fix Can't Type in Command Prompt on Windows ...
Method 1. Quick Fix: Try Command Prompt Alternative ... The first and best solution is to use a reliable alternative to the CMD....
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