Hi All. I'm trying to use the new find_pipelines f...
# questions
z
Hi All. I'm trying to use the new find_pipelines functionality in kedro 0.19.3 but am struggling to get it to work. See below for my pipeline.py file and pipeline_registry.py file. pipeline.py
Copy code
from kedro.pipeline import Pipeline, pipeline, node
from .nodes import (
    test_func,
)

def create_pipeline(**kwargs) -> Pipeline:
    return pipeline([
        node(
            func=test_func,
            inputs="test_data",
            outputs=None,
            name="test_func_node",
        ),
    ])
pipeline_registry.py
Copy code
from typing import Dict

from kedro.framework.project import find_pipelines
from kedro.pipeline import Pipeline


def register_pipelines() -> Dict[str, Pipeline]:
    """Register the project's pipelines.

    Returns:
        A mapping from pipeline names to ``Pipeline`` objects.
    """
    pipelines = find_pipelines()
    pipelines["__default__"] = sum(pipelines.values())
    return pipelines
And when I run kedro run it returns
ValueError: Pipeline contains no nodes after applying all provided filters
I am probably being really stupid but any help would be much appreciated. Thanks!
K 1
a
Sometimes this happens when there are import errors in
nodes.py
or
pipeline.py
- could you post the full stacktrace?
z
You were right about the import error the actual error was
ModuleNotFoundError: No module named 'selenium'
How come the ValueError for the pipeline becomes the most prominent error returned?
a
This comes up from time to time, there’s an open issue related to this if you want to add to the discussion - https://github.com/kedro-org/kedro/issues/2401 but making the tracebacks clearer is on the radar!
👍 1