How severe does this issue affect your experience of using Ray?
- High: It blocks me to complete my task.
Hello. I’m trying to use ray tune to cross validate a sklearn model, however when it comes to the fit() method I get the following issue.
Traceback (most recent call last):
File "C:\Users\Hp\Documents\GitHub\ML_project_2\tunetest.py", line 95, in <module>
tune_svc_search.fit(X_train,y_train)
File "C:\Users\Hp\Documents\GitHub\ML_project_2\newEnv\lib\site-packages\tune_sklearn\tune_basesearch.py", line 622, in fit
return self._fit(X, y, groups, tune_params, **fit_params)
File "C:\Users\Hp\Documents\GitHub\ML_project_2\newEnv\lib\site-packages\tune_sklearn\tune_basesearch.py", line 533, in _fit
self.analysis_ = self._tune_run(X, y, config, resources_per_trial,
File "C:\Users\Hp\Documents\GitHub\ML_project_2\newEnv\lib\site-packages\tune_sklearn\tune_gridsearch.py", line 302, in _tune_run
analysis = tune.run(trainable, **run_args)
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\tune\tune.py", line 348, in run
_ray_auto_init()
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\tune\tune.py", line 841, in _ray_auto_init
ray.init()
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\_private\client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\worker.py", line 1022, in init
_global_node = ray.node.Node(
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\node.py", line 301, in __init__
self.start_ray_processes()
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\node.py", line 1130, in start_ray_processes
resource_spec = self.get_resource_spec()
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\node.py", line 472, in get_resource_spec
self._resource_spec = ResourceSpec(
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\_private\resource_spec.py", line 178, in resolve
num_gpus = _autodetect_num_gpus()
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\_private\resource_spec.py", line 295, in _autodetect_num_gpus
lines = subprocess.check_output(cmdargs).splitlines()[1:]
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Process finished with exit code 1
From what little I’ve understood it has to do with generating a subprocess that is executed by the gpu, that however can’t be found by the subprocess
module.
Do I have to update the drivers for my gpu card, do I have to set some environment variables, or something else entirely?
Also, why is it looking for WMIC when it has been deprecated? especially considering it is trying to interact with a controller that is for windows 32 bits?
(ERRATA CORRIGE: substituted = with ? at the end)
(EDIT: added further questions)