tomohiko kato
03/01/2023, 9:24 AMAccess 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)
run_command=run_blob.get("cli", {}).get("command_path"),
AttributeError: 'str' object has no attribute 'get'
The environment and version are follows.
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?Antony Milne
03/01/2023, 10:14 AMrun_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 😕Rashida Kanchwala
03/01/2023, 10:31 AMAntony Milne
03/01/2023, 10:31 AMRashida Kanchwala
03/01/2023, 10:34 AMAntony Milne
03/01/2023, 10:34 AMpip show strawberry-graphql
🙂Jannic Holzer
03/01/2023, 10:48 AMtomohiko kato
03/01/2023, 12:39 PMare 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.
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
Rashida Kanchwala
03/01/2023, 5:15 PMAntony Milne
03/01/2023, 9:35 PMpip 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 🙂tomohiko kato
03/01/2023, 10:45 PMAll 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!
Antony Milne
03/02/2023, 8:19 AM