Questions tagged [google-cloud-python]

Use this tag if you are going to refer something from Python libraries OR API Clients of Google Cloud Platform.

207 questions
0
votes
1 answer

run_async_query in Python gcloud BigQuery using Standard SQL instead of Legacy SQL

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 here, here, and here I believe I should be able…
KevinTydlacka
  • 1,263
  • 1
  • 15
  • 30
0
votes
1 answer

Hashed or random values getting inserted in google cloud datastore

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

HTTP 401 auth error while logged in with gcloud auth

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) gcs_blob.download_to_file(somefileobject) Pretty…
0
votes
1 answer

How to add C libraries to Python appengine

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 pwd, the path shows: /home/ but when…
0
votes
0 answers

Unit Tests in Jenkins which require gcloud.datastore

I'm new to Jenkins and I'm trying to schedule a Jenkins job to run Python unit tests. The modules being tested import gcloud.datastore, but I'm getting an error: No module named gcloud.datastore when trying to run the Jenkins job. I've installed the…
0
votes
2 answers

412 no matching index found while executing a query in cloud datastore

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.Model): order_name =…
0
votes
1 answer

Stuck with old version of oauth2client when using Vagrant

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 from oauth2client.client import…
Steven Mercatante
  • 24,757
  • 9
  • 65
  • 109
0
votes
1 answer

Fetching 100 Results at a Time in Google App Engine

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 100. I'm guessing there is a very simple way to do…
Mmm Donuts
  • 9,551
  • 6
  • 27
  • 49
0
votes
1 answer

Try to init a Repo using the G cloud, for an existing project

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 without the gitRepo already existing I get this…
-1
votes
1 answer

Estimating cost of Google App Engine API script using “x-appengine-estimated-cpm-us-dollars” header

I created an API using Python + FastAPI and deployed it to Google App Engine and I would like to measure the cost for each request made. I saw there is a header "x-appengine-estimated-cpm-us-dollars" that show up when logged in with the owner…
-2
votes
2 answers

Installing google cloud module on Ubuntu 16.04 returns error

I tried to install google cloud module on Ubuntu 16.04 for python 3 but it shows permission error 13 this error is shown many times during installations for my python environment PermissionError: [Errno 13] Permission denied:…
1 2 3
13
14