Open Make42 opened 1 year ago
Thanks for reporting @Make42. We'll look into it.
@ainoam : Any progress on this?
Still in the pipeline...
Thanks for following up @Make42.
Hi @ainoam, in order to see if the issue prevails (like a regression test for the bug), I find that use_current_task=True
currently produces a ValueError
, but a different one, namely, the ValueError
is caused by a RecursionError: maximum recursion depth exceeded in comparison
.
[...]
File "...\clearml\utilities\proxy_object.py", line 30, in _set_callback
self._update_func(self._update_obj, self)
File "...\clearml\task.py", line 3547, in _refresh_args_dict
config_dict.update(nested_from_flat_dictionary(nested_dict, a_flat_dict))
File "...\clearml\utilities\proxy_object.py", line 45, in update
self._set_callback()
File "...\clearml\utilities\proxy_object.py", line 30, in _set_callback
self._update_func(self._update_obj, self)
[...]
File "...\clearml\task.py", line 3547, in _refresh_args_dict
config_dict.update(nested_from_flat_dictionary(nested_dict, a_flat_dict))
File "...\clearml\utilities\proxy_object.py", line 45, in update
self._set_callback()
File "...\clearml\utilities\proxy_object.py", line 30, in _set_callback
self._update_func(self._update_obj, self)
File "...\clearml\task.py", line 3543, in _refresh_args_dict
a_flat_dict = task._arguments.copy_to_dict(flatten_dictionary(config_dict), prefix=name)
File "...\clearml\backend_interface\task\args.py", line 491, in copy_to_dict
parameters = dict([(k[len(prefix):], v) for k, v in self._task.get_parameters().items()
File "...\clearml\backend_interface\task\task.py", line 1108, in get_parameters
if not Session.check_min_api_version('2.9'):
File "...\clearml\backend_api\session\session.py", line 752, in check_min_api_version
return cls._version_tuple(cls.api_version) >= cls._version_tuple(str(min_api_version))
File "...\clearml\backend_api\session\session.py", line 777, in _version_tuple
return v + (0,) * max(0, 3 - len(v))
RecursionError: maximum recursion depth exceeded in comparison
I am using Dataset.create
inside a @PipelineDecorator.component
-decorated function in a pipeline that I am optimizing with a HyperParameterOptimizer
such that the pipeline/component runs on an agent (which is my local notebook).
I have installed:
Thanks for the additional information @Make42. Do note that at this time, the latest clearml version is 1.11.1
When switching
use_current_task
fromFalse
toTrue
inI get the error message:
This seems to be a bug.
The snipped is in a pipeline step - a function that is decorated with @PipelineDecorator.component and used by a @PipelineDecorator.pipeline.
I am using
clearml 1.10.3 clearml-agent 1.5.2