Closed chriswu99aaa closed 1 year ago
Traceback (most recent call last):
File "C:\Users\shuaimin.wu\GCP_AI\mlops-vertexai\gcp_ai_mlops_accelerator\utils\compile-pipeline.py", line 146, in <module>
compile(args.pipeline_type, pipeline_filename)
File "C:\Users\shuaimin.wu\GCP_AI\mlops-vertexai\gcp_ai_mlops_accelerator\utils\compile-pipeline.py", line 67, in compile
compiler.Compiler().compile(
File "C:\Users\shuaimin.wu\mlops\lib\site-packages\kfp\v2\compiler\compiler.py", line 1303, in compile
pipeline_job = self._create_pipeline_v2(
File "C:\Users\shuaimin.wu\mlops\lib\site-packages\kfp\v2\compiler\compiler.py", line 1213, in _create_pipeline_v2
raise TypeError(
TypeError: The pipeline argument "data_in_y_train" is viewed as an artifact due to its type "Dataset". And we currently do not support passing artifacts as pipeline inputs. Consider type annotating the argument with a primitive type, such as "str", "int", "float", "bool", "dict", and "list".
This is the full error message
cc @connor-mccarthy
@chriswu99aaa, the error message is correct for KFP SDK v1; we don't support specifying artifact inputs or outputs in the pipeline interface. I suggest migrating to KFP SDK v2 (docs on artifacts) if you would like to do this.
Alternatively, consider using a KFP v1 importer component.
Environment
google-cloud-aiplatform==1.11.0 google-cloud-bigquery==1.0.20 google-cloud-pipeline-components==1.0.20 google-api-core==1.32.0
Deployed on google cloud platform
kfp 1.8.13 kfp-pipeline-spec 0.1.16 kfp-server-api 1.8.5
I am running kfp on Pycharm not on the UI, so I just past on the packages related to kfp here.
Steps to reproduce
Expected result
I expect the annotation is correct according to the type specification given by documentation for kfp v2.
Materials and Reference
this is implementation for the pipeline
This is time seies feature transformation component
Impacted by this bug? Give it a 👍.