Accessing the subscription/num_oustanding_messages metric in Google PubSub from Python

Is it possible to access the subscription/num_outstanding_messages metric listed https://cloud.google.com/monitoring/api/metrics#gcp-pubsub from google-cloud-python? I've used similar code to...

Importing translate from google.cloud

I am trying to do translate a document with google translate from the package google.cloud I already did: pip install google.cloud and the result was: Collecting google.cloud Using cached...

import apache_beam metaclass conflict

When I try to import apache beam I get the following error. >>> import apache_beam Traceback (most recent call last): File "<stdin>", line 1, in <module> File...

gRPC/proto Google cloud client libraries vs GAPIC Google cloud client libraries

I've mostly found working with google's client libraries easy to work with, intuitive, and well suited to idiomatic python, with the notable exception of auth (there is a special place in hell for...

References from Python Bigquery Client don't work

Im having troubles running the following code: from google.cloud import bigquery client = bigquery.Client.from_service_account_json(BQJSONKEY,project = BQPROJECT) dataset =...

Google speech API developer error

I had written code (basically the same as the python code under synchronous here) before to transcribe a 10s wav file i made. Just today it stopped working and i get this error: Traceback (most...

Google Datastore API Query Ancestor Filter

I am trying to run a query in Google Datastore using the python API (described here). The model of my data in datastore is I have certain Locations, containing a name, latitude, and longitude, and...

ModuleNotFoundError using Google Cloud Speech

Edited: I installed Google Cloud Speech by using the followning command: pip install --upgrade google-cloud-speech when I run Python Program to convert Audio into Text using Python3, I get an...

Error in installing google-cloud

I am get some errors while trying to install google-cloud by using pip. I tried the following commands to install google-cloud: sudo pip install --upgrade google-cloud sudo pip3 install --upgrade...

How to get the result of an SQL query from Big Query in Airflow?

Using Airflow I want to get the result of an SQL Query fomratted as a pandas DataFrame. def get_my_query(*args, **kwargs) bq_hook = BigQueryHook(bigquery_conn_id='my_connection_id',...

ImportError phonenumbers with google cloud dataflow python

I am trying to do a relatively simple import of the module phonenumbers in Python. I have tested the module on a seperate python file without any other imports and it works completely fine. These...

Unable to install pandas from pip2 from Homebrew

I install python2 in my Mac from homebre with brew install python2 And now I want to install pandas with pip2 pip2 install pandas But I'm receiving this error: grpc-google-iam-v1 0.11.1 has...

pip installing gsutil causes too many incompatible dependencies

When I run pip install -U pip, I get the following error: proto-google-cloud-spanner-v1 0.15.3 has requirement oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is...

Python imp not finding modules

I'm trying to get the Google cloud modules for python working, but am having difficulty in imp seeing the modules correctly for verification purposes. I've even tried a few variants in spelling,...

How to deploy GCP App Engine worker?

I am trying to make personal apps on GCP- following the deploying a complex Python app to flexible Google Cloud environment tutorial [ https://cloud.google.com/python/getting-started/using-pub-sub...

Cannot import name 'ClientWithProject'

I am trying to run my script for downloading file from google cloud storage bucket to my local directory and I am getting: Traceback (most recent call last): File...

Google Cloud Dataflow (Python) - Not installing dependencies correctly

I'm trying to run the official Dataflow example here:https://github.com/GoogleCloudPlatform/dataflow-prediction-example However, the Dataflow job is not able to start correctly (and the same error...

Error when installing apache beam in datalab instance in GCP using python2 kernel

I am trying to install apache beam in the datalab instance on GCP, but running into the following issue, would really love a way to fix this, I am not that proficient with either pip or datalab at...

installing tensorflow_transform and apache_beam on Datalab

I'm going over these example from google-cloud Coursera courses, and although they worked till a few weeks ago, I can't install tf.transform or apache_beam on Datalab...