googleapis / python-aiplatform

A Python SDK for Vertex AI, a fully managed, end-to-end platform for data science and machine learning.
Apache License 2.0
589 stars 318 forks source link

ImportError cloud_profiler could not found. #3623

Closed niraj06 closed 3 months ago

niraj06 commented 3 months ago

We are trying to enable cloud_profiler by following this documentation https://cloud.google.com/vertex-ai/docs/training/tensorboard-profiler

Add below line to model train from google.cloud.aiplatform.training_utils import cloud_profiler

cloud_profiler.init()

throwing error : ImportError: Could not load the cloud profiler. To use the profiler, install the SDK using 'pip install google-cloud-aiplatform[cloud-profiler]'

We tried to install pip install google-cloud-aiplatform[cloud-profiler] and it says no matches found: google-cloud-aiplatform[cloud-profiler]

Ark-kun commented 3 months ago

Thank you for reporting. Can you please try pip install google-cloud-aiplatform[cloud_profiler]

niraj06 commented 3 months ago

pip install google-cloud-aiplatform[cloud_profiler]

@Ark-kun Yes we tried and it gives warning

~$ pip install google-cloud-aiplatform[cloud_profiler] Requirement already satisfied: google-cloud-aiplatform[cloud_profiler] in /opt/conda/lib/python3.10/site-packages (1.47.0) WARNING: google-cloud-aiplatform 1.47.0 does not provide the extra 'cloud-profiler'

we tried with different versions and it's the same warning.