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

tomohiko kato

03/01/2023, 9:24 AM
Hi team! I tried Experiment tracking in Kedro-Viz tutorial, and I can not open experiment tracking screen in
Access run data and compare runs
step. (Data fetching does not seem to be working and nothing is displayed.) error message(
kedro_viz\api\graphql\serializers.py
, line 46)
Copy code
run_command=run_blob.get("cli", {}).get("command_path"),
AttributeError: 'str' object has no attribute 'get'
The environment and version are follows.
Copy code
OS: windows
IDE: pycharm
venv: pyenv
python: 3.9.10
kedro: 0.18.5
kedro-viz: 0.5.3
The error log seems to indicate that the
run_blob
perse is not working. Actually I checked with degugger and
run_blob.get("cli", {})
was recognized as str, not dict. Is this a problem specific to my environment?
a

Antony Milne

03/01/2023, 10:14 AM
Hi @tomohiko kato and thank you for this very helpful and clear report and already getting started debugging on it! This looks to me like quite a bad bug but it’s very strange that no one has spotted it before because the code there has not changed for a while 🤔 As you say,
run_blob["cli"]
is giving a serialised string version of the dictionary rather than the dictionary itself. @Jannic Holzer do you have capacity to take a quick look at this? At a glance calls to
format_run
don’t even seem to be consistent about whether
run_blob
itself should be a str or a dict (as above, it should be a dictionary). I’m surprised mypy didn’t pick up on that 😕
👍🏽 1
(@Jannic Holzer I might have a chance to look into this more later today also but not sure 🙂)
r

Rashida Kanchwala

03/01/2023, 10:31 AM
@Jannic Holzer @Antony Milne -- I am getting the same error since yesterday. Maybe it's to do with the strawberry release.
👍🏽 1
a

Antony Milne

03/01/2023, 10:31 AM
Hmm yes, good thinking!
r

Rashida Kanchwala

03/01/2023, 10:34 AM
@tomohiko kato - are you trying to save the tracking data to a cloud storage like s3 or is it in on your local machine.
👍🏽 1
a

Antony Milne

03/01/2023, 10:34 AM
Also would be great if you could show the output of
pip show strawberry-graphql
🙂
👍🏽 1
j

Jannic Holzer

03/01/2023, 10:48 AM
Hey @Antony Milne I'll try to take a quick look today 🙂
gratitude thank you 2
t

tomohiko kato

03/01/2023, 12:39 PM
Thank you for your quick reply! @Rashida Kanchwala
are you trying to save the tracking data to a cloud storage like s3 or is it in on your local machine.
I'm trying to save it on my local machine.(I am following the tutorial step.) @Antony Milne
Also would be great if you could show the output of pip show strawberry-graphql 🙂
Here it is.
Copy code
Name: strawberry-graphql
Version: 0.159.0
Summary: A library for creating GraphQL APIs
Home-page: <https://strawberry.rocks/>
Author: Patrick Arminio
Author-email: <mailto:patrick.arminio@gmail.com|patrick.arminio@gmail.com>
License: MIT
Location: c:\users\tomohikokato\.virtualenvs\kedro-tutorial-fmieofph\lib\site-packages
Requires: graphql-core, python-dateutil, typing_extensions
Required-by: kedro-viz
r

Rashida Kanchwala

03/01/2023, 5:15 PM
@tomohiko kato - this is a bug and we are working on releasing a fix for it soon.
a

Antony Milne

03/01/2023, 9:35 PM
For the time being though, it should all work fine with kedro 0.18.4. So I would recommend: • do
pip uninstall kedro && pip install kedro==0.18.4
to downgrade • assuming you’re just following a tutorial and don’t have any run information that you care about, delete your
data/session_store.db
file • you can keep the rest of the project as it is All should then work as per the tutorial 🙂
t

tomohiko kato

03/01/2023, 10:45 PM
@Antony Milne @Rashida Kanchwala
All should then work as per the tutorial 🙂
I can see the experiment tracking page! Thank you for fixing the problem and developing a great product!
🥳 1
a

Antony Milne

03/02/2023, 8:19 AM
Thanks for letting us know @tomohiko kato and for your very helpful debugging! Have fun with kedro
😀 1
4 Views