google-cloud-sdk

How to solve `CERTIFICATE_VERIFY_FAILED` error when install gcloud?

How to solve `CERTIFICATE_VERIFY_FAILED` error when install gcloud? Question: I tried to install gcloud in MacOs but failed. I tried two python versions 3.7.4 and 3.9.1 but both have the same issue. how can I install the gcloud? Is there any other dependencies I need? $ python –version Python 3.9.1 $ sh install.sh –screen-reader=true Welcome …

Total answers: 4

How to get file size of objects from google cloud python library?

How to get file size of objects from google cloud python library? Question: Problem Hello everyone. I am attempting to obtain the file size of an object using the google-cloud python library. This is my current code. from google.cloud import storage client = storage.Client() bucket = client.get_bucket("example-bucket-name") object = bucket.blob("example-object-name.jpg") print(object.exists()) >>> True print(object.chunk_size) >>> …

Total answers: 2