GoogleCloudPlatform / training-data-analyst

Labs and demos for courses for GCP Training (http://cloud.google.com/training).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vertex AI: Qwik Start: error in creating tabular dataset

tm-jc-nacpil opened this issue · comments

In the lab Vertex AI: Qwik Start, the code fails in the section Create a managed Tabular dataset from your BigQuery data source. Similar to #2110

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_15579/1145961888.py in <module>
----> 1 tabular_dataset = aiplatform.TabularDataset.create(display_name="online-retail-clv", bq_source=f"{BQ_URI}")

/opt/conda/lib/python3.7/site-packages/google/cloud/aiplatform/datasets/tabular_dataset.py in create(cls, display_name, gcs_source, bq_source, project, location, credentials, request_metadata, encryption_spec_key_name, sync)
    349                 encryption_spec_key_name=encryption_spec_key_name
    350             ),
--> 351             sync=sync,
    352         )
    353 

/opt/conda/lib/python3.7/site-packages/google/cloud/aiplatform/base.py in wrapper(*args, **kwargs)
    643                 if self:
    644                     self.wait()
--> 645                 return method(*args, **kwargs)
    646 
    647             # callbacks to call within the Future (in same Thread)

/opt/conda/lib/python3.7/site-packages/google/cloud/aiplatform/datasets/dataset.py in _create_and_import(cls, api_client, parent, display_name, metadata_schema_uri, datasource, project, location, credentials, request_metadata, encryption_spec, sync)
    300             datasource=datasource,
    301             request_metadata=request_metadata,
--> 302             encryption_spec=encryption_spec,
    303         )
    304 

/opt/conda/lib/python3.7/site-packages/google/cloud/aiplatform/datasets/dataset.py in _create(cls, api_client, parent, display_name, metadata_schema_uri, datasource, request_metadata, encryption_spec)
    392 
    393         return api_client.create_dataset(
--> 394             parent=parent, dataset=gapic_dataset, metadata=request_metadata
    395         )
    396 

/opt/conda/lib/python3.7/site-packages/google/cloud/aiplatform_v1/services/dataset_service/client.py in create_dataset(self, request, parent, dataset, retry, timeout, metadata)
    499 
    500         # Send the request.
--> 501         response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
    502 
    503         # Wrap the response in an operation future.

/opt/conda/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py in __call__(self, timeout, retry, *args, **kwargs)
    152             kwargs["metadata"] = metadata
    153 
--> 154         return wrapped_func(*args, **kwargs)
    155 
    156 

/opt/conda/lib/python3.7/site-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)
     55         callable_.__name__ = callable_.__class__.__name__
     56 
---> 57 
     58 def _wrap_unary_errors(callable_):
     59     """Map errors for Unary-Unary and Stream-Unary gRPC callables."""

/opt/conda/lib/python3.7/site-packages/grpc/_channel.py in __call__(self, request, timeout, metadata, credentials, wait_for_ready, compression)
    943         state, operations, deadline, rendezvous = self._prepare(
    944             request, timeout, metadata, wait_for_ready, compression)
--> 945         if state is None:
    946             raise rendezvous  # pylint: disable-msg=raising-bad-type
    947         else:

/opt/conda/lib/python3.7/site-packages/grpc/_channel.py in _blocking(self, request, timeout, metadata, credentials, wait_for_ready, compression)
    931                   compression=None):
    932         state, call, = self._blocking(request, timeout, metadata, credentials,
--> 933                                       wait_for_ready, compression)
    934         return _end_unary_response_blocking(state, call, True, None)
    935 

src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi in grpc._cython.cygrpc.SegregatedCall.next_event()

src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi in grpc._cython.cygrpc._next_call_event()

src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi in grpc._cython.cygrpc._next_call_event()

src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pyx.pxi in grpc._cython.cygrpc._latent_event()

src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pyx.pxi in grpc._cython.cygrpc._internal_latent_event()

src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi in grpc._cython.cygrpc._get_metadata()

AttributeError: '_Plugin' object has no attribute '_stored_ctx'