Join the Kedro community

Updated last month

Trouble Getting Kedro Viz to Run

At a glance

The community member is having trouble getting kedro viz to run, even for an example repository. They have followed the steps of creating a new Kedro project using uvx kedro new, generating the project with options 1-5 and 7, and running uv venv and uv sync. However, when they try to run kedro viz, they get the error "Error: No such command 'viz'". The issue seems to be related to the uvx command not adding the necessary Kedro Viz dependencies.

In the comments, another community member suggests that the issue might be a pydantic v1/v2 dependency error. They also mention that the correct command to run Kedro Viz is uv run kedro viz, as it uses the correct $PATH to pick up the command, similar to how cargo run or npm run work.

Hi all, I'm having trouble getting kedro viz to run, even for an example repo. Here's the steps I've taken:

  1. run uvx kedro new (uses kedro 0.19.11 )
  2. Generate a project with options 1-5,7 (everything but pyspark)
  3. Run uv venv and uv sync
  4. Run kedro viz, I get the following output: Error: No such command 'viz'.

This is on a Mac with python 3.11. Am I missing something very obvious?

R
J
6 comments

I see this other issue but that seems to be a pretty specific case.

Ok, weird, the issue was that creating a kedro project with uvx didn't add any of the kedro viz dependencies. This is separate from the issue I'm dealing with, which is that kedro viz won't run on the project I'm working on (giving the same error Error: No such command 'viz'. )

Ok seems to be some pydantic v1/v2 dependency error.

let me see if I can reproduce

it works for me but you need to do uv run kedro viz and not just kedro viz @Richard Purvis

otherwise it doesn't pick it up. it's similar to how cargo run or npm run work, they use the right $PATH for you behind the scenes

Add a reply
Sign up and join the conversation on Slack