christopherjenness / NBA-prediction

Predict scores of NBA games using regularized matrix completion
152 stars 43 forks source link

FileNotFoundError: [WinError 2] #12

Open 228lebron opened 1 year ago

228lebron commented 1 year ago

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'])