Use this tag if you are going to refer something from Python libraries OR API Clients of Google Cloud Platform.
Questions tagged [google-cloud-python]
207 questions
1
vote
1 answer
GAE Python needed IPV4 response from request.remote_addr
I have an application that relies on IPV4 addresses. Recently, some requests are returning IPV6 addresses when calling request.remote_addr and that is breaking the app.
Is there any way to force and App Engine (Standard, Python) app to return only…

Rene Marty
- 531
- 4
- 14
1
vote
0 answers
ImportError with py2exe-compiled executable
I am using py2exe to compile a set of scripts that rely on the Google Cloud Python API. After compiling, when I run an executable, the following error displays:
...
File ".py", line xx, in
import…

Yusuf Siddiqui
- 11
- 1
1
vote
1 answer
How to parse audit log entries from Stackdriver on GCP
I'm trying to retrieve BigQuery audit logs using Stackdriver Logging Client Libraries in Python.
According to the tutorial, the following code should be able to fetch log entries:
for entry in client.list_entries():
…

snaga
- 41
- 1
- 7
1
vote
1 answer
How to import modules when modules have same folder names,
I'm facing an issue where google.appengine and google.cloud python modules are under different directories named google
Their following paths are as below:
1st Path:…

Tameem
- 408
- 7
- 19
1
vote
1 answer
Google Cloud Bigtable Python Client Performance Issue
I'm running into a performance issue with Google Cloud Bigtable Python Client. I'm working on a flask API that writes to and reads from a GCP Bigtable instance. The API uses the python client to communicate with Bigtable, and was deployed to GCP App…

xiu shi
- 727
- 8
- 22
1
vote
1 answer
Is google-api-python-client deprecating?
Is google-api-python-client library going to hit the end of support soon ?
I have been using this library for many things & i am hitting multiple issues because the library is not thread-safe.
Should i work on using some wrapper class for having…

amitam
- 342
- 2
- 13
1
vote
1 answer
Does Cloud Python lib in GAE use caching or memcache for access to Cloud Firestore data?
Setup: Google App Engine application on Python standard environment.
Currently, the app uses the NDB library to read/write from its Datastore. It uses async tasklets for parallel, asynchronous reads from Datastore, and memcache.
If I would like to…

Ani
- 1,377
- 1
- 18
- 29
1
vote
0 answers
Creating a Dataproc cluster on google cloud using JSON
So I'm trying to provision a Google Dataproc cluster in a Python API. Below is the function I use for creating a cluster, but when I try running the script, it spits out an error, so something is wrong, but I can't tell what.
def…

claudiadast
- 419
- 1
- 9
- 18
1
vote
0 answers
Google Cloud Storage - BrokenPipeError when uploading using Python library
I have a long-running Python script that uploads documents from MongoDB to GC Storage. Documents are first exported to local csv file and that csv file is uploaded to GC Storage.
Before the error, the script was running for about 10 hours with no…

leonz
- 1,107
- 2
- 10
- 32
1
vote
1 answer
Uploading multiple files to Google Cloud Storage via Python Client Library
The GCP python docs have a script with the following function:
def upload_pyspark_file(project_id, bucket_name, filename, file):
"""Uploads the PySpark file in this directory to the configured
input bucket."""
print('Uploading…

claudiadast
- 419
- 1
- 9
- 18
1
vote
1 answer
Should BigQuery throw an error using table.insert_data() with skip_invalid_rows=True?
I'm using the BigQuery API for Python to insert data in a table with table.insert_data().
Sometimes a row will contain a None value for a field that is set to REPEATED mode in the table schema. When this happens, the following error is returned by…

Thomas W
- 273
- 2
- 15
1
vote
1 answer
Google Cloud Dataflow cryptic message when downloading file from gcp to local system
I am writing a dataflow pipeline that processes videos from a google cloud bucket. My pipeline downloads each work item to the local system and then reuploads results back to GCP bucket. Following previous question.
The pipeline works on local…

bw4sz
- 2,237
- 2
- 29
- 53
1
vote
1 answer
How can we create a project on google cloud using python api client
I'm working on a project to automate google cloud setup, is there any way to create a google cloud platform project using Google-Api-Client for python?
Help me, please!
Thanks in advance!
Here's what I have tried:
From views.py
from google.cloud…

Abdul Rehman
- 5,326
- 9
- 77
- 150
1
vote
0 answers
Error running Google video intelligence API code
I am trying to use the Video Intelligence API code provided on GitHub by google cloud, here is the link to the code: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/video/cloud-client/analyze/analyze.py
When I am trying to run…

Shivangi Shroff
- 11
- 3
1
vote
2 answers
google.gax.errors.RetryError StatusCode.DEADLINE_EXCEEDED
from this github:
https://github.com/GoogleCloudPlatform/python-docs-samples
i am trying to test Video intelligence API and do label analysis.
import argparse
import sys
import time
import io
import base64
from…

Rock
- 13
- 7