NBA-prediction
NBA-prediction copied to clipboard
FileNotFoundError: [WinError 2]
Traceback (most recent call last): File "E:\PyProjects\basketball\NBA-prediction\model\model.py", line 228, in
model = NBAModel(update=True) File "E:\PyProjects\basketball\NBA-prediction\model\model.py", line 54, in init self.soft_impute() File "E:\PyProjects\basketball\NBA-prediction\model\model.py", line 194, in soft_impute subprocess.check_output(['Rscript', 'model/predict_soft_impute.R']) File "C:\Users\Пользователь\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\Пользователь\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\Пользователь\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Пользователь\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1438, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2]
I can't figure out what the problem is with subprocess.check_output(['Rscript', 'model/predict_soft_impute.R'])