``` ImportError: cannot import name 'MemoryDataSet...
# questions
m
Copy code
ImportError: cannot import name 'MemoryDataSet' from '<http://kedro.io|kedro.io>' 
(/Applications/anaconda3/envs/sales-project/lib/python3.10/site-packages/kedro/io/__init__.py)

When I installed kedro-neptune I can't run the cod. getting this error

kedro -V = 0.19.1
j
hi @Muhammed Rashid, it should be
MemoryDataset
(notice lowercase
s
)
opening an issue upstream
m
where should I change it
/Applications/anaconda3/envs/sales-project/lib/python3.10/site-packages/kedro_neptune/__init__.p │ │ y:36 in <module> │ │ │ │ 33 from kedro.framework.project import settings │ │ 34 from kedro.framework.session import KedroSession │ │ 35 from kedro.framework.startup import ProjectMetadata │ │ ❱ 36 from kedro.io import ( │ │ 37 │ DataCatalog, │ │ 38 │ MemoryDataSet, │ │ 39 )
m
Screenshot 2023-12-19 at 2.06.10 PM.png,Screenshot 2023-12-19 at 2.06.15 PM.png
j
@Muhammed Rashid in the meantime, please
pip install "kedro<0.19"
and try again
m
But neptune is not supported under < 0.19
j
kedro-neptune has been working fine with Kedro 0.18 all this time - or have you spotted any issues?
Kedro 0.19 was released last week
m
template. See https://github.com/kedro-org/kedro/blob/main/RELEASE.md for how to migrate your Kedro project. (sales-project) rashid@Muhammeds-MacBook-Air sales-project % kedro -V ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /Applications/anaconda3/envs/sales-project/bin/kedro:8 in <module> │ │ │ │ /Applications/anaconda3/envs/sales-project/lib/python3.10/site-packages/kedro/framework/cli/cli. │ │ py:210 in main │ │ │ │ 207 │ commands to `kedro`'s before invoking the CLI. │ │ 208 │ """ │ │ 209 │ _init_plugins() │ │ ❱ 210 │ cli_collection = KedroCLI(project_path=Path.cwd()) │ │ 211 │ cli_collection() │ │ 212 │ │ │ │ /Applications/anaconda3/envs/sales-project/lib/python3.10/site-packages/kedro/framework/cli/cli. │ │ py:111 in init │ │ │ │ 108 │ def __init__(self, project_path: Path): │ │ 109 │ │ self._metadata = None # running in package mode │ │ 110 │ │ if _is_project(project_path): │ │ ❱ 111 │ │ │ self._metadata = bootstrap_project(project_path) │ │ 112 │ │ self._cli_hook_manager = get_cli_hook_manager() │ │ 113 │ │ │ │ 114 │ │ super().__init__( │ │ │ │ /Applications/anaconda3/envs/sales-project/lib/python3.10/site-packages/kedro/framework/startup. │ │ py:174 in bootstrap_project │ │ │ │ 171 │ """Run setup required at the beginning of the workflow │ │ 172 │ when running in project mode, and return project metadata. │ │ 173 │ """ │ │ ❱ 174 │ metadata = _get_project_metadata(project_path) │ │ 175 │ _add_src_to_path(metadata.source_dir, project_path) │ │ 176 │ configure_project(metadata.package_name) │ │ 177 │ return metadata │ │ │ │ /Applications/anaconda3/envs/sales-project/lib/python3.10/site-packages/kedro/framework/startup. │ │ py:117 in _get_project_metadata │ │ │ │ 114 │ │ metadata_dict["kedro_init_version"].split(".")[:2] │ │ 115 │ │ != kedro_version.split(".")[:2] │ │ 116 │ ): │ │ ❱ 117 │ │ raise ValueError(_version_mismatch_error(metadata_dict["kedro_init_version"])) │ │ 118 │ │ │ 119 │ source_dir = Path(metadata_dict.get("source_dir", "src")).expanduser() │ │ 120 │ source_dir = (project_path / source_dir).resolve() │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ValueError: Your Kedro project version 0.19.1 does not match Kedro package version 0.18.14 you are running. Make sure to update your project template. See https://github.com/kedro-org/kedro/blob/main/RELEASE.md for how to migrate your Kedro project.
In time of migration from 0.19.1 to 0.18.14. i changed the pyproject.toml. But it didn't worked
j
this is because you (or whoever created the project) just did a
kedro new
recently with 0.19, and the newer template cannot be used with older Kedro versions. you have 2 options: • you recreate the
kedro new
with Kedro 0.18.14 • you wait for kedro-neptune to release a fix
m
so create a new project and start again from scratch
I think there is a bug in installing neptune in 0.18. That's reason why I changed the version to 0.19
I can't initialize kedro-neptune
The file neptune.yaml is not created when I install kedro-neptune
j
cc @Siddhant Sadangi
m
pls let me know when you fix that error. @Juan Luis
j
@Muhammed Rashid I'm not part of the kedro-neptune team - for visibility, please create a new Slack thread with your
credentials_neptune
problem (because it's different from the one you reported earlier)
m
Not that. The first error because MemoryDataSet