Join the Kedro community

Updated 3 hours ago

Kedro Viz Errors

Hi guys,

Trying to run kedro viz, and I am getting some strange errors like below:

(projx) ⋊> ~/P/projx on master ⨯ uv run --with kedro-viz kedro viz run                                                          14:29:10
   Built projx @ file:///home/ftopal/Projects/projx
Uninstalled 1 package in 0.68ms
Installed 1 package in 1ms
Installed 98 packages in 109ms
[02/18/25 14:30:28] INFO     Using 'conf/logging.yml' as logging configuration. You can change this by setting the       __init__.py:270
                             KEDRO_LOGGING_CONFIG environment variable accordingly.                                                     
WARNING: Experiment Tracking on Kedro-viz will be deprecated in Kedro-Viz 11.0.0. Please refer to the Kedro documentation for migration guidance.
INFO: Running Kedro-Viz without hooks. Try `kedro viz run --include-hooks` to include hook functionality.
Starting Kedro Viz ...
[02/18/25 14:30:31] INFO     Using 'conf/logging.yml' as logging configuration. You can change this by setting the       __init__.py:270
                             KEDRO_LOGGING_CONFIG environment variable accordingly.                                                     
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/home/ftopal/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/home/ftopal/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/server.py", line 121, in run_server
    load_and_populate_data(
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/server.py", line 70, in load_and_populate_data
    populate_data(data_access_manager, catalog, pipelines, session_store, stats_dict)
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/server.py", line 44, in populate_data
    data_access_manager.add_pipelines(pipelines)
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/data_access/managers.py", line 124, in add_pipelines
    self.add_pipeline(registered_pipeline_id, pipeline)
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/data_access/managers.py", line 180, in add_pipeline
    input_node = self.add_node_input(
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/data_access/managers.py", line 259, in add_node_input
    graph_node = self.add_dataset(
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/data_access/managers.py", line 371, in add_dataset
    graph_node = GraphNode.create_data_node(
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/kedro_viz/models/flowchart/nodes.py", line 140, in create_data_node
    return DataNode(
  File "/home/ftopal/.cache/uv/archive-v0/TA93jbcQ_9KplZlKrI4mO/lib/python3.10/site-packages/pydantic/main.py", line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for DataNode
kedro_obj.is-instance[Node]
  Input should be an instance of Node [type=is_instance_of, input_value=[projx.models.llm.LLM(bac.../logs'), _logging=True)], input_type=list]
    For further information visit <a target="_blank" rel="noopener noreferrer" href="https://errors.pydantic.dev/2.10/v/is_instance_of">https://errors.pydantic.dev/2.10/v/is_instance_of</a>
kedro_obj.is-instance[AbstractDataset]
  Input should be an instance of AbstractDataset [type=is_instance_of, input_value=[projx.models.llm.LLM(bac.../logs'), _logging=True)], input_type=list]
    For further information visit <a target="_blank" rel="noopener noreferrer" href="https://errors.pydantic.dev/2.10/v/is_instance_of">https://errors.pydantic.dev/2.10/v/is_instance_of</a>

Any idea why i am getting this now? Complaining about some input values but everything work fine in kedro run

E
F
R
8 comments

Hello @Fazil Topal, what kedro and kedro viz versions do you use?

Kedro viz I tried last 3 versions and they all failed. Kedro is at 0.19.10

@Rashida Kanchwala any thoughts on this?

Based on the error it seems the input dataset - projx.models.llm.LLM(bac.../logs') is not an instance of AbstractDataset . @Fazil Topal I remember you were able to run a project before. Could you please let us know if there were any changes to the installations or this is a different project. Thank you

Not that I know. It still works for kedro run, everything is fine but viz complains for some reason. That class inherits AbstractDataset. Not sure why it says that

Do you have a custom hook helping in some way ? kedro viz run does not include hooks by default. Can you try kedro viz run --include-hooks ?

I tried that, it still didn't work. I have no clue why this is happening. I don't have complex hooks, just to parse certain columns of dataframe in the data. 🤷

Hi @Fazil Topal, Is it possible to clear cache and re-install kedro-viz ? Based on the logs it pretty much points to the dataset projx.models.llm.LLM being a list instead of AbstractDataset instance. If possible, could you please open a bug ticket with some reproducible snippet. Appreciate your patience. Thank you

Add a reply
Sign up and join the conversation on Slack