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

Deprecated Functions #3745

Open
hanantabak2 opened this issue May 27, 2024 · 1 comment
Open

Deprecated Functions #3745

hanantabak2 opened this issue May 27, 2024 · 1 comment

Comments

@hanantabak2
Copy link

This Documentation has some deprecated functions as follows :

1- In the snippet :
def merge_csv(file_path: comp.InputPath('Tarball'), output_csv: comp.OutputPath('CSV')):

It should be :
from kfp.dsl import InputPath, OutputPath
def merge_csv(file_path: InputPath('Tarball'), output_csv: OutputPath('CSV')):

2- Also when I run this snippet :
create_step_merge_csv = kfp.components.create_component_from_func( func=merge_csv, output_component_file='component.yaml', # This is optional. It saves the component spec for future use. base_image='python:3.7', packages_to_install=['pandas==1.1.4'])

I get this error : AttributeError: module 'kfp.components' has no attribute 'create_component_from_func'

@hbelmiro
Copy link
Contributor

Thank you for reporting @hanantabak2.
Are you willing to send a PR?

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

No branches or pull requests

2 participants