Hey Team! :hand: I am getting the following error...
# questions
a
Hey Team! I am getting the following error while running kedro viz:
Copy code
Traceback (most recent call last):
  File "/opt/bitnami/python/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/opt/bitnami/python/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/server.py", line 100, in run_server
    populate_data(
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/server.py", line 49, in populate_data
    data_access_manager.add_pipelines(pipelines)
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/data_access/managers.py", line 109, in add_pipelines
    self.add_pipeline(registered_pipeline_id, pipeline)
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/data_access/managers.py", line 159, in add_pipeline
    input_node = self.add_node_input(
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/data_access/managers.py", line 228, in add_node_input
    graph_node = self.add_dataset(
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/data_access/managers.py", line 291, in add_dataset
    graph_node = GraphNode.create_data_node(
  File "/opt/bitnami/python/lib/python3.9/site-packages/kedro_viz/models/flowchart.py", line 238, in create_data_node
    return DataNode(
  File "/opt/bitnami/python/lib/python3.9/site-packages/pydantic/main.py", line 171, in __init__
    self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for DataNode
dataset_type
  Field required [type=missing, input_value={'id': 'c8e8232c', 'name'...t': True, 'stats': None}, input_type=dict]
    For further information visit <https://errors.pydantic.dev/2.6/v/missing>
viz_metadata
  Field required [type=missing, input_value={'id': 'c8e8232c', 'name'...t': True, 'stats': None}, input_type=dict]
    For further information visit <https://errors.pydantic.dev/2.6/v/missing>
2024-02-29 10:49:04,371 - py4j.clientserver - INFO - Closing down clientserver connection
For me, it's hard to tell where the error is. I checked the catalog entries, and the nodes. All seems fine, but there are way too many pipelines to check by running them. Please help to debug this! Thanks! 🙂
d
@Rashida Kanchwala any ideas?
r
can you share your pip version of kedro-datasets, kedro-viz and kedro
a
Here you go:
Copy code
kedro                                      0.18.14
kedro-datasets                             1.8.0
kedro-viz                                  6.7.0
r
thanks, as discussed it should be fixed by upgrading kedro-viz to newer version.. it's backward compatible. let me know
👍 1
a
Thanks @Rashida Kanchwala Confirming that upgrading kedro viz fixes it 🙂
👍 1