Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'AbstractDataSet' from 'kedro.io' #4390

Open
philmar1 opened this issue Dec 23, 2024 · 0 comments
Open

cannot import name 'AbstractDataSet' from 'kedro.io' #4390

philmar1 opened this issue Dec 23, 2024 · 0 comments
Labels
Community Issue/PR opened by the open-source community

Comments

@philmar1
Copy link

philmar1 commented Dec 23, 2024

Description

Hello,

I'm trying to create a custom dataset from this tutorial https://docs.kedro.org/en/stable/data/how_to_create_a_custom_dataset.html

I've followed the tutorial but when running kedro ipython in the terminal with my venv activated, I get the following error (same with %load_ext kedro.ipython in a notebook):

    raise DatasetError(
kedro.io.core.DatasetError: An exception occurred when parsing config for dataset 'pikachu':
cannot import name 'AbstractDataSet' from 'kedro.io' (/Users/philippemartin/miniconda3/envs/kedro_high/lib/python3.12/site-packages/kedro/io/__init__.py) 

Folder structure

.
├── conf
│   ├── base
│   │   ├── catalog.yml
│   │   └── parameters.yml
│   └── local
│       └── credentials.yml
├── data
│   ├── 01_raw (here is the pokemon.png file)
│   ├── ...
├── docs
│   └── source
│       ├── conf.py
│       └── index.rst
├── notebooks
├── pyproject.toml
├── requirements.txt
└── src
    ├── datasets
    │   ├── __init__.py
    │   └── pokemon_dataset.py
    └── kedro_test
        ├── __init__.py
        ├── __main__.py
        ├── pipeline_registry.py
        ├── pipelines
        │   └── __init__.py
        └── settings.py

Environment

  • Kedro version 0.19.2
  • Python version 3.12.0
  • Operating system and version: MacOS Sonoma 14.4.1

Any one had a similar bug ? I've tried many different configs of kedro/python and only one specific seems to work for me (python 3.8.12 and kedro 0.18.12)

@merelcht merelcht added the Community Issue/PR opened by the open-source community label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Issue/PR opened by the open-source community
Projects
None yet
Development

No branches or pull requests

2 participants