gcloud-python's questions - Japanese 1answer

0 gcloud-python questions.

I tried to install the Spacy package in the virtual environment I have created in Google Cloud. The Spacy package is approximately 2GB, and I wonder if the reason why the terminal killed the install ...

We could run "gcloud auth list" to get our credentialed account, and now I want to do the same thing in my python code, that is checking the credential account by API in python. But I didn't fine it......

I am using gcloud python client library (https://github.com/google/google-api-python-client) to get a list of instances. I am able to use filters like name, status but I can't figure out how to ...

I'm currently able to run a local python script that calls the Google vision API using the python client library (specifically, I'm using the google-cloud-vision package). However, I'm curious about ...

I have the following code which serves up a public google cloud storage url for images I am uploading: def to_internal_value(self, data): file_name = str(uuid.uuid4()) # Get the file name ...

I have successfully implemented the python function to upload a file to Google Cloud Storage bucket but I want to add it to a sub-directory (folder) in the bucket and when I try to add it to the ...

I am trying to connect to the Google App Engine Datastore from my local machine. I have spent all day digging in to this without any luck. I have tried the approach here (as well as alot of other ...

I am using gcloud python client library(https://github.com/google/google-api-python-client) to get a list of instances. I am able to use filters like name, status but I can't figure out a way to ...

It's frustrating to deal with the regular Signed URLs (Query String Authentication) for Google Cloud Storage. Google Cloud Storage Signed URLs Example -> Is this really the only code available in the ...

I am trying the "Getting Started with Cloud Spanner in Python" guide for google cloud spanner. I have created the instances databases e.t.c. I have got to the "Create a database client" section. We ...

I have problems with the authentication in the Python Library of Google Cloud API. At first it worked for some days without problem, but suddenly the API calls are not showing up in the API Overview ...

I'm updating a script to call OAuth2-protected Google Cloud endpoints. The previous version assumed a single user previously authenticated by gcloud auth login and thus was able to use the default: ...

I'm using the Google Cloud Speech API Python Library to extract text from a video file. In a prior step the video file is converted to a flac audiofile. sample_rate = 48000 client = speech.Client() ...

I have a table in Google Cloud Datastore where I store a small data structure which is written in one Python service and read in another. I am using gcloud version 0.15.0. Here is the Python code that ...

I have updated gcloud components. I have installed BigQuery lib using pip install following the instructions in the online doc. I am running Python 2.7.10. when I run a python script that has the ...

We are trying to download reviews ratings and stats data of mobile apps from google cloud. In the server machine a ubuntu box, I installed gcloud. I did authentication in the box with using gcloud ...

I am using gcloud-python library for querying data from the cloud datastore. Consider my snippet to be like this from google.appengine.ext import ndb from datetime import datetime class Order(ndb....

I'm going through google's appengine tutorials and made the simple example of posting a form ans retrieving the information. Through the tutorial steps I had to install Google Cloud SDK with the ...

I've got a bunch of little Raspberry Pis running some python code which saves directly to the Datastore (skips GAE) using the gcloud-python datastore package. This works great. I now want to present ...

app-engine fails to import gcloud used gcloud app deploy app.yaml \cron.yaml to deploy on google app engine opened on browser and get: Traceback (most recent call last): File "/base/data/home/...

I manage to create or modify a datastore entity fine with google.cloud.datastore in python, but when I log in into my Cloud Platform project in the browser and check the entry, it looks like all of ...

I need to get Google Datastore usage statistics - storage usage, and record count for my application. At the moment I only can count fetch all items and count them. But I have no idea how I can get ...

I try to upload a few rows of data using the gcloud python library and don't succeed. Here is the sample code taken from the latest documentation client = bigquery.Client() dataset = client.dataset('...

I'm going to write a Python program to check if a file is in certain folder of my Google Cloud Storage, the basic idea is to get the list of all objects in a folder, a file name list, then check if ...

There is an existing project I am a developer on with ID: placingliterature I am attempting to run the command gcloud init placingliterature I ran g auth and logged in properly. I tried with or ...

The Google documentation is a little generic on this topic and I find it hard to get around the different APIs and terms they're using, so I'm wondering if someone could point me to the right ...

I was hoping someone could explain to me how to use offsets or cursors in App Engine. I'm using gcloud to remote access entities for a huge data migration, and would like to grab data in batches of ...

I am trying to upload a file to Google Cloud Storage using gcloud-python and set some custom metadata properties. To try this I have created a simple script. import os from gcloud import storage ...

I've got a script that uses gcloud v0.7.1. As soon as I run it, I get the following error: ... File "/home/vagrant/venvs/lib/python2.7/site-packages/gcloud/credentials.py", line 26, in <module&...

I have been working with python (interacting with BigQuery and Cloud Storage) for several months and more recently have been using Datalab for similar tasks. I'd appreciate clarification on the ...

The example here is outdated https://googlecloudplatform.github.io/gcloud-python/stable/bigquery-usage.html#exporting-data-async. The example gives error: AttributeError: 'Table' object has no ...

Is there a way in gcloud-python to close a connection? Currently, it seems that a connection is established and once it's done, it will sit there in CLOSE_WAIT and time out eventually. Any help is ...

I have a Python GAE application which also uses Google Compute Engine VM instances. I'm trying to run some 3rd party applications from the shell. When I launch the Google Cloud Shell program and type ...

It seems there is no way to construct query with OR condition. Has anyone hit this issue or know when this will be done or any workaround. What I want to achive something like this with OR: query = ...

try to get a blob from google cloud storage like this: from gcloud import storage gcs_client = storage.Client() gcs_bucket = gcs_client.get_bucket('mybucketname') gcs_blob = gcs_bucket.blob(path) ...

I'm trying to query for some data using the gcloud api that I just discovered. I'd like to query for a KeyPropery. e.g.: from google.appengine.ext import ndb class User(ndb.Model): email = ndb....

I have tried to push a Docker Image to "gcr" Registry programmatically. The "gcloud docker --authorize-only" gives me a short - live authentication. How can I perform authentication using python ...

I want to retrieve a list of images from Google Cloud Docker Registry via https://gcr.io http API. I found a way to do it from command line like this: curl -u _token:$(gcloud auth print-access-token)...

After i recently updated the gcloud components with gcloud components update to version 108.0.0, i noticed the gcloud preview app deploy app.yaml command has started taking too long every time (about ...

I've been running GoogleAppEngineLauncher for a couple days, without incident. This morning I installed the gcloud package from Google. The issue is that now, regardless of where I run my AppEngine ...

I am attemptting to get a CRC32c checksum on my local file so I can compare it to the blob.crc32c provided by the gcloud library. Google says I should be using the crcmod module in order to actually ...

Hi I am trying to use the Google Cloud Client Library for Python to convert a shell script using the gcloud CLI to launch a container to python. In searching through the documentation (https://...

I'm trying to use client and buckets of gcloud on google app engine. First, I install gcloud. pip install gcloud -t my_project_directory Second,I start to import gcloud and use it. Here is my code: ...

I am uploading binary jpeg files using html <form> on to my python webapp server hosted on Google App Engine. The server method receives the entire image (tried printing stats such as file size/...

I'm trying to save an object into Cloud Datastore, the object contains a dictionary as a property value: client = datastore.Client(project_id) key = client.key('Config', 'config', 'Environment', '...

task = datastore.Entity(client.key('ModelDataTest', prod_id)) task.update({ 'ProductId': '1234', 'ListOfRankedRelevantItems.ProductId': ['345', '456','567'], ...

I need to run an async query using the gcloud python BigQuery library. Furthermore I need to run the query using the beta standard sql instead of the default legacy sql.According to the documentation ...

In some gcloud code I'm finding a comment: Stored "well known" file associated with gcloud command line tool What is this "well known" file?

I am used to Google Cloud SQL, where you can connect to a database outside of GAE. Is something like this possible for the GAE datastore, using the Python NDB interface ideally ? Basically, my use-...

I am trying to retrieve all entities belonging to a particular namespace. The query is quite simple query = datastore.Query(namespace=<namespace>) Running this however returns keys belonging ...

Related tags

Hot questions

Language

Popular Tags