schoon
schoon

Reputation: 3324

Why do I get AttributeError: module 'google_cloud_pipeline_components.aiplatform' has no attribute 'EndpointDeleteOp' in GCP?

My code is:

from google.cloud import aiplatform
from google_cloud_pipeline_components import aiplatform as gcc_aip
... (in a pipeline definition:)
 delete_endpoint_op = gcc_aip.EndpointDeleteOp(some_condition)

and when I compile the pipeline I get:

AttributeError: module 'google_cloud_pipeline_components.aiplatform' has no attribute 'EndpointDeleteOp'

but this says it exists. Could this be I am importing the wrong version, and, if so, how do I check and fix? TIA!

Upvotes: 2

Views: 2043

Answers (1)

schoon
schoon

Reputation: 3324

Yes it is a version issue, check the version:

!python3 -c "import google_cloud_pipeline_components; print('google_cloud_pipeline_components version: {}'.format(google_cloud_pipeline_components.__version__))"

update it:

!pip3 install google-cloud-pipeline-components --upgrade

Upvotes: 3

Related Questions