-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
convert string to GCSPath object or create one #4710
Comments
I assume that you have a component with the |
But when I load a kfp component "ml_engine/deploy" and try to pass it a GCS Path as a string. It gives me an error while converting my python code to DSL.
|
Are you passing it a constant string? Can you please show a PoC? P.S. If you're passing not a constant string, but a pipeline parameter, then you can change the type of that pipeline parameter or use the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Ark-kun I ran into the same issue. The It would be handy if we could have some static methods like |
I have a similar problem with the I am trying to use this GCP Component to performe a BigQuery query. The Error I get is: I understand that this is not only a type problem, more a problem of kfp.v2 expecting not primary types to be Artifacts. But how can I provide the project_id as a Artifact in my pipeline definition? This is my pipeline definition:
Compiler:
|
I am having the same problem. It seems the v2 of the kfp compiler is having trouble these type conversions. |
I have same issue(#4710 (comment)). from kfp.dsl.types import GCPProjectID
@dsl.pipeline(...)
def feature_extract_pipeline(
query:str,
project_id: GCPProjectID,
dataset_id:str,
table_id:str,
dataset_location:str,
job_config:str
):
training_data_op = bigquery_query_op(
query=query,
project_id=project_id,
dataset_id=dataset_id,
table_id=table_id,
dataset_location=dataset_location,
job_config=job_config
)
I wait for this document(#5801) to be created. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am also having this same problem on
Compiler:
Error:
Someone else mentioned that This is the fundamental question that needs answering, imo, in order to get folks to pass parameters to pipelines the way that the v2 pipelines expect them to be:
Otherwise, it seems an inconsistency was introduced in the type conversion of strings -> dsl types with the migration to v2. This pipeline code compiles with the v1 compiler. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue. No activity for more than a year. /close |
@rimolive: Closing this issue. In response to this:
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. |
I want to convert my string
"gs://some_bucket/some_dir"
intokfp.dsl.types.GCPPath
How do I do it?
Or probably I need to create a GCSPath Object with the above GCS path
Any ideas?
The text was updated successfully, but these errors were encountered: