Skip to content
Advertisement

Python : FileNotFoundError [WinError 2] The system cannot find the file specified , subprocess.py:1582

Details error message:-

 FileNotFoundError

  [WinError 2] The system cannot find the file specified

  at ~AppDataLocalProgramsPythonPython39libsubprocess.py:1582 in _execute_child
      1578│             sys.audit("subprocess.Popen", executable, args, cwd, env)
      1579│ 
      1580│             # Start the process
      1581│             try:
    → 1582│                 hp, ht, pid, tid = _winapi.CreateProcess(
      1583│                     executable,
      1584│                     args,
      1585│                     # no special security
      1586│                     None,
make: *** [makefile:14: format] Error 1

We have something similar issue listed here: https://bugs.python.org/issue17023

The file is there, the path is fine too. But why am I getting this error as the file is there at the specified location?

I`m getting this error while running formatter linters.

Advertisement

Answer

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement