MartinSahlen/cloud-functions-python

NameError: name 'bigquery' is not defined

santhoshdc1590 opened this issue · 3 comments

I deployed my function.py on google cloud

I am getting NameError: name 'bigquery' is not defined error in error logs when a hit the google cloud function URL.

I have added below code

from cloudfn.google_account import get_credentials

biquery_client = bigquery.Client(credentials=get_credentials())

I have no idea what's happening

My bigquery API is already enabled according to this post

Can anyone help?

Are we required to install BigQuery Client Libraries?

by looking at this

screen shot 2018-03-26 at 3 05 43 pm

I still am facing this issue!
Any help anyone?

pip install --upgrade google-cloud