<@U06RKAMK0UC> I am getting error `Failed to conve...
# ask-ai
m
@ancient-wolf-19325 I am getting error
Failed to convert type <class 'ml_pipeline_components.data_processing.dataset.Dataset'> to type <class 'workflows.dataset_cls.Dataset'>. Error Message: maximum recursion depth exceeded in comparison.
, what could be the cause?
j
The error
Failed to convert type <class 'ml_pipeline_components.data_processing.dataset.Dataset'> to type <class 'workflows.dataset_cls.Dataset'>. Error Message: maximum recursion depth exceeded in comparison.
suggests a type conversion issue between two different
Dataset
classes. This could be due to a mismatch in the expected and actual types or a recursive call that exceeds the maximum recursion depth. To diagnose further: 1. Check Type Definitions: Ensure that the
Dataset
classes in
ml_pipeline_components.data_processing.dataset
and
workflows.dataset_cls
are compatible and correctly defined. 2. Type Transformer: If you are using custom type transformers, verify that they handle the conversion correctly without causing infinite recursion. Would you like more detailed steps on how to address this issue or further explanation on the underlying mechanics? Sources: - GitHub Issue #4581 - GitHub Issue #4057 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.