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

ModuleNotFoundError: No module named 'kedro.io.transformers' #16

Open
Peccer opened this issue Oct 11, 2022 · 2 comments
Open

ModuleNotFoundError: No module named 'kedro.io.transformers' #16

Peccer opened this issue Oct 11, 2022 · 2 comments

Comments

@Peccer
Copy link

Peccer commented Oct 11, 2022

Seems to use a deprecated transformer function from kedro.

Reference: https://kedro.readthedocs.io/en/0.17.0/07_extend_kedro/06_transformers.html

Output when running main.py from terminal

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /work/pipelinex_causallift/main.py:2 in │
│ │
│ 1 from pathlib import Path │
│ ❱ 2 from pipelinex import version, configure_source, FlexibleContext │
│ 3 │
│ 4 │
│ 5 if name == "main": │
│ │
│ /root/venv/lib/python3.9/site-packages/pipelinex/init.py:13 in │
│ │
│ 10 │
│ 11 if find_spec("kedro"): │
│ 12 │ from .extras.hooks.add_catalog_dict import * # NOQA │
│ ❱ 13 │ from .extras.hooks.add_transformers import * # NOQA │
│ 14 │ from .flex_kedro.configure import * # NOQA │
│ 15 │ from .flex_kedro.context.flexible_context import * # NOQA │
│ 16 │ from .flex_kedro.pipeline.pipeline import * # NOQA │
│ │
│ /root/venv/lib/python3.9/site-packages/pipelinex/extras/hooks/add_transformers.py:4 in │
│ │
│ 1 from typing import List, Tuple, Union │
│ 2 │
│ 3 from kedro.io import DataCatalog │
│ ❱ 4 from kedro.io.transformers import AbstractTransformer │
│ 5 │
│ 6 try: │
│ 7 │ from kedro.framework.hooks import hook_impl │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'kedro.io.transformers'

@Minyus
Copy link
Owner

Minyus commented Oct 11, 2022

Hi @Peccer ,

Thank you for reporting the issue.
As you pointed out, PipelineX does not support kedro 0.18.x yet.
Could you install kedro 0.17.x ?

pip install kedro==0.17.7

Pull requests for fix are welcomed.

@Minyus
Copy link
Owner

Minyus commented Nov 12, 2022

I released pipelinex 0.7.6 which does not import modules missing in kedro 0.18.x to avoid the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants