GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Getting AttributeError when importing cloud_profiler from google cloud aiplatform · Issue #4079 · googleapis/python-aiplatform

Getting AttributeError when importing cloud_profiler from google cloud aiplatform #4079

New issue
Copy link
New issue
Copy link
Closed
#4496
#4428
Closed
Getting AttributeError when importing cloud_profiler from google cloud aiplatform#4079
#4496
#4428
Copy link
Assignees
sasha-gitg
Labels
api: vertex-aiIssues related to the googleapis/python-aiplatform API.

Description

@Abe410
Abe410
opened on Jul 10, 2024
Issue body actions

When running the following:

from google.cloud.aiplatform.training_utils import cloud_profiler

I get:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 1
----> 1 from google.cloud.aiplatform.training_utils import cloud_profiler

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/aiplatform/__init__.py:26
     21 __version__ = aiplatform_version.__version__
     24 from google.cloud.aiplatform import initializer
---> 26 from google.cloud.aiplatform.datasets import (
     27     ImageDataset,
     28     TabularDataset,
     29     TextDataset,
     30     TimeSeriesDataset,
     31     VideoDataset,
     32 )
     33 from google.cloud.aiplatform import explain
     34 from google.cloud.aiplatform import gapic

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/aiplatform/datasets/__init__.py:19
      1 # -*- coding: utf-8 -*-
      2 
      3 # Copyright 2020 Google LLC
   (...)
     15 # limitations under the License.
     16 #
     18 from google.cloud.aiplatform.datasets.dataset import _Dataset
---> 19 from google.cloud.aiplatform.datasets.column_names_dataset import _ColumnNamesDataset
     20 from google.cloud.aiplatform.datasets.tabular_dataset import TabularDataset
     21 from google.cloud.aiplatform.datasets.time_series_dataset import TimeSeriesDataset

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/aiplatform/datasets/column_names_dataset.py:24
     21 from typing import List, Optional, Set
     22 from google.auth import credentials as auth_credentials
---> 24 from google.cloud import bigquery
     25 from google.cloud import storage
     27 from google.cloud.aiplatform import utils

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/bigquery/__init__.py:35
     31 from google.cloud.bigquery import version as bigquery_version
     33 __version__ = bigquery_version.__version__
---> 35 from google.cloud.bigquery.client import Client
     36 from google.cloud.bigquery.dataset import AccessEntry
     37 from google.cloud.bigquery.dataset import Dataset

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/bigquery/client.py:69
     65     DEFAULT_BQSTORAGE_CLIENT_INFO = None  # type: ignore
     68 from google.cloud.bigquery._http import Connection
---> 69 from google.cloud.bigquery import _job_helpers
     70 from google.cloud.bigquery import _pandas_helpers
     71 from google.cloud.bigquery import _versions_helpers

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/bigquery/_job_helpers.py:47
     44 import google.api_core.exceptions as core_exceptions
     45 from google.api_core import retry as retries
---> 47 from google.cloud.bigquery import job
     48 import google.cloud.bigquery.query
     49 from google.cloud.bigquery import table

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/bigquery/job/__init__.py:17
      1 # Copyright 2015 Google LLC
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     15 """Define API Jobs."""
---> 17 from google.cloud.bigquery.job.base import _AsyncJob
     18 from google.cloud.bigquery.job.base import _error_result_to_exception
     19 from google.cloud.bigquery.job.base import _DONE_STATE

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/bigquery/job/base.py:30
     28 from google.cloud.bigquery import _helpers
     29 from google.cloud.bigquery._helpers import _int_or_none
---> 30 from google.cloud.bigquery.retry import (
     31     DEFAULT_GET_JOB_TIMEOUT,
     32     DEFAULT_RETRY,
     33 )
     36 _DONE_STATE = "DONE"
     37 _STOPPED_REASON = "stopped"

File /opt/micromamba/lib/python3.10/site-packages/google/cloud/bigquery/retry.py:150
    145 DEFAULT_GET_JOB_TIMEOUT = 128
    146 """
    147 Default timeout for Client.get_job().
    148 """
--> 150 POLLING_DEFAULT_VALUE = google.api_core.future.polling.PollingFuture._DEFAULT_VALUE
    151 """
    152 Default value defined in google.api_core.future.polling.PollingFuture.
    153 """

AttributeError: type object 'PollingFuture' has no attribute '_DEFAULT_VALUE'

Running google-cloud-aiplatform==1.57.0

Activity

  1. product-auto-label
    added
    api: vertex-aiIssues related to the googleapis/python-aiplatform API.
    on Jul 10, 2024
  2. sasha-gitg
    added a commit that references this issue on Jul 10, 2024

    feat: add default timeout for Client.get_job() (#1935)

    9fbad76
  3. sasha-gitg commented on Jul 10, 2024

    @sasha-gitg
    sasha-gitg
    on Jul 10, 2024
    Member
    More actions

    @Abe410 What version of google-api-core do you have installed?

  4. sasha-gitg
    self-assigned this
    on Jul 10, 2024
  5. Abe410 commented on Jul 10, 2024

    @Abe410
    Abe410
    on Jul 10, 2024
    Author
    More actions

    @Abe410 What version of google-api-core do you have installed?

    google-api-core==2.8.1

  6. copybara-service
    added 2 commits that reference this issue on Sep 19, 2024

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    5ae5443

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    d8b5595
  7. copybara-service
    added 3 commits that reference this issue on Oct 1, 2024

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    26425cb

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    b641b28

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    427bd75
  8. copybara-service
    closed this as completedin 427bd75on Oct 1, 2024
  9. copybara-service
    added 8 commits that reference this issue on Oct 1, 2024

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    55a2287

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    0befcf9

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    458f546

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    97b4100

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    546aad9

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    5b3624c

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    44c4984

    chore: GenAI - `Part.function_call.args` is now a proper `dict`

    1e49799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sasha-gitg
    sasha-gitg

Labels

api: vertex-aiIssues related to the googleapis/python-aiplatform API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.