capascualm
capascualm

Reputation: 133

ImportError: cannot import name 'bigquery' from 'google.cloud' (unknown location)

I'm trying to deploy a Cloud Function and it is returning me all the time the following error after importing bigquery from google.cloud

ImportError: cannot import name 'bigquery' from 'google.cloud' (unknown location)

I've tried to install all the newest versions and remove and reinstall and persists

Any idea?

Upvotes: 9

Views: 10617

Answers (1)

Sergey Geron
Sergey Geron

Reputation: 10152

Try adding something like google-cloud-bigquery==2.3.1 into requirements.txt of your Google Cloud Function enter image description here

Upvotes: 11

Related Questions