google-cloud-sdk

Error “No URLs matched” When copying Google cloud bucket data to my local computer?

浪尽此生 提交于 2019-12-09 17:56:21
问题 I am trying to download a folder which is inside my Google Cloud Bucket , I read from google docs gsutil/commands/cp and executed below the line. gsutil cp -r appengine.googleapis.com gs://my-bucket But i am getting the error CommandException: No URLs matched: appengine.googleapis.com Edit By running below command gsutil cp -r gs://logsnotimelimit . I am getting Error IOError: [Errno 22] invalid mode ('ab') or filename: u'.\logsnotimelimit\appengine.googleapis.com\nginx.request\2018\03\14\14

Why does exporting GOOGLE_APPLICATION_CREDENTIALS not work with `bq`?

只愿长相守 提交于 2019-12-08 05:52:27
问题 The google docs say to export the env var GOOGLE_APPLICATION_CREDENTIALS with the path to a service account's JSON key, and gcloud will use it. I can't get it to work. My command is: GOOGLE_APPLICATION_CREDENTIALS=/home/ubuntu/.config/google-creds.json bq ls This just brings up an error: You do not currently have an active account selected. Please run: $ gcloud auth login to obtain new credentials, or if you have already logged in with a different account: $ gcloud config set account ACCOUNT

Google Cloud SDK installer fails on Windows 7 (gcloud crashed (UnicodeDecodeError))

白昼怎懂夜的黑 提交于 2019-12-06 07:14:13
问题 My OS is win7. I want to install the clould SDK. But it "Failed to install". The ERROR message is: Output folder: C:\Program Files (x86)\Google\Cloud SDK Downloading Google Cloud SDK core. Extracting Google Cloud SDK core. Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat Installing components. Welcome to the Google Cloud SDK! ERROR: gcloud crashed (UnicodeDecodeError): 'ascii' codec can't decode byte 0xa4 in position 9: ordinal not in range(128) If you

GCP wont work after upgrading to OSX Mojave

扶醉桌前 提交于 2019-12-06 06:35:08
问题 After I upgraded to OSX Mojave (Developer beta 2) I get an error every time I use GCP and also at reinstalling it. ERROR: gcloud failed to load: No module named zlib gcloud_main = _import_gcloud_main() import googlecloudsdk.gcloud_main from googlecloudsdk.calliope import base from googlecloudsdk.calliope import display from googlecloudsdk.calliope import display_taps from googlecloudsdk.core.resource import resource_printer_base from googlecloudsdk.core.resource import resource_projector from

Upgrading google-cloud-sdk Fails on Configure

試著忘記壹切 提交于 2019-12-06 00:53:40
Upgrading gcloud on Ubuntu 16.04 fails on postinst configuration. The google-cloud-sdk has been installed and used without installation problems, but this is aborting the upgrade at the configuration phase. The problem seems to be that the postinst script is executing a Python3 script with the Python2 interpreter, which fails on a Python3 syntax line. # sudo dpkg --configure google-cloud-sdk Setting up google-cloud-sdk (131.0.0-0) ... dpkg: error processing package google-cloud-sdk (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered

Can I use gcloud in Git Bash on Windows?

泄露秘密 提交于 2019-12-04 17:09:48
问题 So, I've installed Git, Git Bash, Python2.7, and I've just installed the Google Cloud SDK per the official guide. Using Windows 10. In cmd.exe, or the "Google Cloud SDK Shell", gcloud works fine. Within Git Bash, however (the terminal that I prefer to use), gcloud returns the following output (screenshot). echo $PATH in Git Bash does include the path to the Google SDK (highlighted here). Am I missing something? Is there anything in $PATH that is possibly conflicting with gcloud, or did I

GOOGLE_APPLICATION_CREDENTIALS error

馋奶兔 提交于 2019-12-04 08:37:14
问题 I am trying to use the google speech API for converting an audio file to text, but facing some problems with the documentation.I have enabled the speech API and created an service account file. I also got the service account credentials activated. Then I wrote the following command to retrieve the authorization token using my service account. gcloud auth application-default print-access-token But it is returning this message I don't understand why this is happening because I already have an

Google Cloud SDK install on OS X: (gcloud.components.list) Failed to fetch component listing from server

折月煮酒 提交于 2019-12-03 09:27:05
问题 I'm trying to install the Google Cloud SDK (https://cloud.google.com/sdk/docs/quickstart-mac-os-x) and get this error: ERROR: (gcloud.components.list) Failed to fetch component listing from server. Check your network settings and try again. Already tried updating OpenSSL and corresponding Python (also tried Python 2.7.8): openssl version OpenSSL 1.0.2k 26 Jan 2017 python -V Python 2.7.13 Python is also using this OpenSSL version: >>> import ssl >>> ssl.OPENSSL_VERSION 'OpenSSL 1.0.2k 26 Jan

GOOGLE_APPLICATION_CREDENTIALS error

倾然丶 夕夏残阳落幕 提交于 2019-12-03 00:22:06
I am trying to use the google speech API for converting an audio file to text, but facing some problems with the documentation.I have enabled the speech API and created an service account file. I also got the service account credentials activated. Then I wrote the following command to retrieve the authorization token using my service account. gcloud auth application-default print-access-token But it is returning this message I don't understand why this is happening because I already have an VM instance created in my Compute Engine. Can anybody explain where am I going wrong with this? Also, is

Mac gcloud install ImportError: No module named __future__

你离开我真会死。 提交于 2019-12-02 13:01:29
问题 When installing gcloud for mac I get this error when I run the install.sh command according to docs here: Traceback (most recent call last): File "/path_to_unzipped_file/google-cloud-sdk/bin/bootstrapping/install.py", line 8, in <module> from __future__ import absolute_import I poked through and echoed out some stuff in the install shell script. It is setting the environment variables correctly (pointing to my default python installation, pointing to the correct location of the gcloud SDK).