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 · 4 comments
Open

Deprecated Functions #3745

hanantabak2 opened this issue May 27, 2024 · 4 comments
Labels
help wanted Extra attention is needed

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?

@varodrig
Copy link
Contributor

@hbelmiro @hanantabak2 can you clarify where is the issue? in which page?

@varodrig
Copy link
Contributor

/help

Copy link

@varodrig:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@google-oss-prow google-oss-prow bot added the help wanted Extra attention is needed label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: To Do
Development

No branches or pull requests

3 participants