# questions

Iñigo Hidalgo

04/02/2024, 10:13 AM
Hello, Is the new kedro-viz 8.0 release meant to be compatible with pydantic v1 and v2? From this comment I gather that was the intention, but I am getting an error
Copy code
[04/02/24 10:01:57] WARNING  Failed to load kedro_viz.launchers.cli commands from                 
                             EntryPoint(name='kedro-viz', value='kedro_viz.launchers.cli:viz_cli',
                             group='kedro.global_commands'). Full exception: cannot import name
                             'ValidationInfo' from 'pydantic'
deps info:
Copy code
K 1

Nok Lam Chan

04/02/2024, 10:39 AM, short answer is no. AFAIK the only support is V2 now, maybe it was not clear that we dropped v1 support. Release note:

Iñigo Hidalgo

04/02/2024, 10:40 AM
Okay yeah from the release notes it's clear. I went searching through issues because I didn't actually see a pydantic>=2 requirement in the kedro-viz package
The issue arose because I already had pydantic 1.xx installed in my env and when i installed kedro-viz 8.x it didn't actually update pydantic to v2 as pydantic isn't actually listed as a dependency of kedro-viz, it is only through a transitive dependency on fastapi >= 0.100, but 0.100 is compatible with pydantic v1
👍🏼 1

Rashida Kanchwala

04/02/2024, 12:21 PM
Thanks for raising this. Assumption was fastapi>=1.0.0 would itself do the pydantic upgrade but since it's backward compatibile looks like it doesn't. we will add this.
👍 1

Iñigo Hidalgo

04/02/2024, 1:15 PM
Would it be possible to yank the wrongly-specified releases? I can easily fix this on my end, but I assume I won't be the only person with this problem: I have some project dependencies which still depend on pydantic<2 so some projects aren't compatible with kedro-viz 8.xx but from now on kedro viz will resolve to 8.0.1 unless i manually pin that on my end for each project

Andrew Stewart

04/12/2024, 9:16 PM
same issue - is the quick fix here to just bump pydantic to 2 ?
👌 1