neo4j-partners / hands-on-lab-neo4j-and-vertex-ai

Hands on Lab for Neo4j and Vertex AI
Apache License 2.0
93 stars 45 forks source link

Lab 5 - upload to google cloud storage #19

Closed Samyouell closed 1 year ago

Samyouell commented 1 year ago

This step gives me an error message that mentions "bucket.location" is deprecated". Did google code change? I'm not sure if I'm doing the step right or not.

Full error message:

:2: DeprecationWarning: Assignment to 'Bucket.location' is deprecated, as it is only valid before the bucket is created. Instead, pass the location to `Bucket.create`. bucket.location=REGION --------------------------------------------------------------------------- TransportError Traceback (most recent call last) /usr/local/lib/python3.8/dist-packages/google/auth/compute_engine/credentials.py in refresh(self, request) 110 try: --> 111 self._retrieve_info(request) 112 self.token, self.expiry = _metadata.get_service_account_token( 15 frames TransportError: ("Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true from the Google Compute Engine metadata service. Status: 404 Response:\nb''", ) The above exception was the direct cause of the following exception: RefreshError Traceback (most recent call last) /usr/local/lib/python3.8/dist-packages/six.py in raise_from(value, from_value) RefreshError: ("Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true from the Google Compute Engine metadata service. Status: 404 Response:\nb''", )
gogitguhan commented 1 year ago

Fixed the deprecation warning message.

benofben commented 1 year ago

Thanks Guhan. Confirmed it's fixed!