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