getGPUs error when no GPU avaliable

Hi, I’m using ray tune on my laptop and I don’t have any GPU’s so would like to use my CPU to perform tuning. I’m using tune.with_resources to specify that I would like to use 1 CPU, however, I am still getting errors. It calls “getGPUs” even though I’ve specified I want to use a CPU and then returns an error as it gets back ‘No devices were found’. How can I get around this error? Here is the full error I am getting:

File “main.py”, line 97, in
main(args)
File “main.py”, line 9, in main
run.regular(
File “/home/jd18380/Documents/ContinualLearning/run.py”, line 15, in regular
tune_hyperparams(data_name, model_name, optimizer_type, selection_metric=“top_test_accuracy”)
File “/home/jd18380/Documents/ContinualLearning/param_tune.py”, line 101, in tune_hyperparams
results = tuner.fit()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/tune/tuner.py”, line 347, in fit
return self._local_tuner.fit()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/tune/impl/tuner_internal.py”, line 588, in fit
analysis = self._fit_internal(trainable, param_space)
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/tune/impl/tuner_internal.py”, line 712, in _fit_internal
analysis = run(
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/tune/tune.py”, line 583, in run
_ray_auto_init(entrypoint=error_message_map[“entrypoint”])
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/tune/tune.py”, line 225, in _ray_auto_init
ray.init()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/client_mode_hook.py”, line 103, in wrapper
return func(*args, **kwargs)
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/worker.py”, line 1534, in init
_global_node = ray._private.node.Node(
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/node.py”, line 290, in init
self.start_ray_processes()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/node.py”, line 1213, in start_ray_processes
resource_spec = self.get_resource_spec()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/node.py”, line 459, in get_resource_spec
self._resource_spec = ResourceSpec(
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/resource_spec.py”, line 175, in resolve
num_gpus = _autodetect_num_gpus()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/ray/_private/resource_spec.py”, line 278, in _autodetect_num_gpus
gpu_list = GPUtil.getGPUs()
File “/home/jd18380/Documents/venv_CL-exp/lib/python3.8/site-packages/GPUtil/GPUtil.py”, line 102, in getGPUs
deviceIds = int(vals[i])
ValueError: invalid literal for int() with base 10: ‘No devices were found’