You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All I am trying to do to is test out the kubeflow pipeline feature locally without deploying all the infrastructure. As far as I am aware, all I need is docker to be installed and I should be good to go . I am following this guide: and when it comes to running the code:
from kfp import local
from kfp import dsl
local.init(runner=local.DockerRunner())
@dsl.component
def add(a: int, b: int) -> int:
return a + b
# run a single component
task = add(a=1, b=2)
assert task.output == 3
# or run it in a pipeline
@dsl.pipeline
def math_pipeline(x: int, y: int, z: int) -> int:
t1 = add(a=x, b=y)
t2 = add(a=t1.output, b=z)
return t2.output
pipeline_task = math_pipeline(x=1, y=2, z=3)
assert pipeline_task.output == 6
I get the following error:
ImportError: cannot import name 'local' from partially initialized module 'kfp' (most likely due to a circular import) (/home/ola/Code/mlops/apps/kfp.py)
Can anyone let me know what it is that I am doing that is wrong? I thought I could use my local docker engine to simulate these pipelines without the need of a KF cluster deployed.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
akinwilson
changed the title
[bug] <Execute KFP pipelines locally: Unable to use DockerRunner() >
[bug] Execute KFP pipelines locally: Unable to use DockerRunner()
Nov 28, 2024
Environment
KFP version and docker version
All I am trying to do to is test out the kubeflow pipeline feature locally without deploying all the infrastructure. As far as I am aware, all I need is docker to be installed and I should be good to go . I am following this guide: and when it comes to running the code:
I get the following error:
Can anyone let me know what it is that I am doing that is wrong? I thought I could use my local docker engine to simulate these pipelines without the need of a KF cluster deployed.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: