RESOLVED FIXED Bug 258704
[Win] "git-webkit pr" reports "FileNotFoundError: [WinError 2] The system cannot find the file specified"
https://bugs.webkit.org/show_bug.cgi?id=258704
Summary [Win] "git-webkit pr" reports "FileNotFoundError: [WinError 2] The system can...
Fujii Hironori
Reported 2023-06-29 17:21:13 PDT
[Win] "git-webkit pr" reports "FileNotFoundError: [WinError 2] The system cannot find the file specified" PS C:\home\webkit\ga> python .\Tools\Scripts\git-webkit pr Traceback (most recent call last): File "C:\home\webkit\ga\Tools\Scripts\git-webkit", line 82, in <module> sys.exit(program.main( ^^^^^^^^^^^^^ File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\__init__.py", line 183, in main return parsed.main( ^^^^^^^^^^^^ File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\pull_request.py", line 721, in main return cls.create_pull_request(repository, args, branch_point) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\pull_request.py", line 388, in create_pull_request if args.checks and not cls.pre_pr_checks(repository): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\pull_request.py", line 319, in pre_pr_checks command = run(path.split(' '), cwd=repository.root_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\home\webkit\ga\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\subprocess_utils.py", line 52, in run return subprocess.run(*popenargs, timeout=timeout, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python311\Lib\subprocess.py", line 1509, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the file specified
Attachments
Fujii Hironori
Comment 1 2023-06-29 17:22:39 PDT
Fujii Hironori
Comment 2 2023-06-29 17:24:12 PDT
There are two ways to work around. Adding git config: > git config --add webkitscmpy.pre-pr.style-checker "python Tools/Scripts/check-webkit-style" Creating a symlink in the directory of python.exe: > mklink python3.exe python.exe
Radar WebKit Bug Importer
Comment 3 2023-07-06 17:22:17 PDT
Fujii Hironori
Comment 4 2023-10-15 21:47:03 PDT
EWS
Comment 5 2023-10-16 13:24:10 PDT
Committed 269375@main (3e52075ba71d): <https://commits.webkit.org/269375@main> Reviewed commits have been landed. Closing PR #19102 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.