Join the Kedro community

Updated 2 weeks ago

Trouble Getting Kedro Viz to Run

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