Use Ray Tune with Ray Client Server?

i’m trying to use Ray Client with ray tune.

following Code works without errors:

def f(x): return x ** x

But when I try to to use the client server with ray.tune it fails:

def f(config): return x ** x,config=conf)


2021-03-10 16:48:39,672 - ray.tune.trial_runner - ERROR - Trial f_14625_00000: Error processing event.
Traceback (most recent call last):
File “…/python3.8/site-packages/ray/tune/”, line 586, in _process_trial
results = self.trial_executor.fetch_result(trial)
File “…/python3.8/site-packages/ray/tune/”, line 609, in fetch_result
result = ray.get(trial_future[0], timeout=DEFAULT_GET_TIMEOUT)
File “…/python3.8/site-packages/ray/_private/”, line 46, in wrapper
return getattr(ray, func._name_)(*args, **kwargs)
File “…/python3.8/site-packages/ray/util/client/”, line 33, in get
return self.worker.get(vals, timeout=timeout)
File “…/python3.8/site-packages/ray/util/client/”, line 156, in get
out = [self._get(x, timeout) for x in to_get]
File “…/python3.8/site-packages/ray/util/client/”, line 156, in
out = [self._get(x, timeout) for x in to_get]
File “…/python3.8/site-packages/ray/util/client/”, line 168, in _get
err = cloudpickle.loads(data.error)
TypeError: _init_() missing 6 required positional arguments: ‘function_name’, ‘traceback_str’, ‘cause_cls’, ‘proctitle’, ‘pid’, and ‘ip’
Result for f_14625_00000:

Any ideas?

Just to be sure, can you try importing tune (from ray import tune) after the ray connect?