https://kedro.org/ logo
#questions
Title
# questions
t

Tejas Tundulwar

12/18/2023, 2:29 PM
Hi everyone, I am running kedro 0.17.6 and have kedro-viz version 6.7.0. When I run
kedro viz
in my project I get the error
Copy code
ImportError: cannot import name 'deprecated' from 'typing_extensions'
I tried upgrading the package but it didn't solve the issue. How can I get this missing library? I am using python version 3.7.16
n

Nok Lam Chan

12/18/2023, 2:49 PM
Where is this error coming from?
Any chance you can share a more detailed traceback
t

Tejas Tundulwar

12/18/2023, 3:02 PM
This is the traceback @Nok Lam Chan
n

Nok Lam Chan

12/18/2023, 3:20 PM
can you try upgrade
typing_extensions
? seems to related to fastapi versioning
t

Tejas Tundulwar

12/18/2023, 3:21 PM
I tried upgrading it but I already have it at 4.7.1
n

Nok Lam Chan

12/18/2023, 3:21 PM
I see - the comments there suggest you need >=4.8.0 which have dropped python 3.7 support already
maybe you can fallback to some older version of
kedro-viz
, 6.7.0 is relatively new while kedro 0.17.6 is almost 2 years old
t

Tejas Tundulwar

12/18/2023, 3:23 PM
Oh , then I would need to check with my company. We are supposed to use our JFrog repo and I don't see any version higher than 4.7.1 there
Okay, What version for kedro-viz do you suggest?
n

Nok Lam Chan

12/18/2023, 3:24 PM
yeah because you are using python 3.7, which is not supported anymore https://devguide.python.org/versions/, thus many libraries are dropping it
t

Tejas Tundulwar

12/18/2023, 3:24 PM
In the pypi project page they have given this
n

Nok Lam Chan

12/18/2023, 3:25 PM
maybe try 6.0.0. If you are on Python 3.8 it should still work, in this case itโ€™s the 3-rd party libraries dropping it so itโ€™s tricky.
flagging this for the viz team @Rashida Kanchwala @Nero Okwa
t

Tejas Tundulwar

12/18/2023, 3:27 PM
I am using python 3.7.16
@Nok Lam Chan with 6.0.0 as well I am getting same error
n

Nok Lam Chan

12/18/2023, 3:55 PM
can you run
pip list | grep fastapi typing_extensions
?
t

Tejas Tundulwar

12/18/2023, 3:59 PM
Copy code
fastapi: 0.89.1
typing_extensions: 4.7.1
๐Ÿ‘€ 1
r

Ravi Kumar Pilla

12/18/2023, 8:13 PM
Hi @Tejas Tundulwar, if you haven't already tried, can you please uninstall and reinstall as suggested here
Copy code
pip uninstall typing_extensions --yes and then reinstalling typing_extensions==4.7.1
Thank you
๐Ÿ‘€ 1
t

Tejas Tundulwar

12/18/2023, 8:27 PM
@Ravi Kumar Pilla This works , Thanks. I am getting other errors now. I will reach out if I am not able to solve them ๐Ÿ™‚
๐Ÿฅณ 2
r

Ravi Kumar Pilla

12/18/2023, 8:29 PM
Glad it worked !! If possible, I would recommend you to please upgrade python version >=3.8 as Kedro Viz will be dropping support for 3.7 from version 7.0.0. Thank you
๐Ÿ‘๐Ÿฝ 1
2 Views