aws-samples / eks-kubeflow-workshop

Kubeflow workshop on EKS. Mainly focus on AWS integration examples. Please go check kubeflow website http://kubeflow.org for other examples
Apache License 2.0
96 stars 56 forks source link

05_02_Pipeline_lightweight missing import for kfp components #9

Closed mshapirov closed 4 years ago

mshapirov commented 4 years ago

Step: add_op = comp.func_to_container_op(add, base_image='python:3.6.8')

Fails with unknown identifier for comp.

Can be fixed by adding import to the function definition step:

#Define a Python function
import kfp
from kfp import components
Jeffwan commented 4 years ago

Ah.. I have similar issues yesterday and I probably forget to import the libraries. Thanks. I will file a PR to address this issue