tylertreat/BigQuery-Python

ImportError: No module named bigquery

joeleidelmanm opened this issue · 0 comments

When trying to use bigquery package installed like this pip install bigquery-python i am getting this error "ImportError: No module named bigquery". I am using the documentation below:

BigQuery project id as listed in the Google Developers Console.

project_id = 'project_id'

Service account email address as listed in the Google Developers Console.

service_account = 'my_id_123@developer.gserviceaccount.com'

PKCS12 or PEM key provided by Google.

key = 'key.pem'

client = get_client(project_id, service_account=service_account,
private_key_file=key, readonly=True)

JSON key provided by Google

json_key = 'key.json'

client = get_client(json_key_file=json_key, readonly=True)

Submit an async query.

job_id, _results = client.query('SELECT * FROM dataset.my_table LIMIT 1000')

Check if the query has finished running.

complete, row_count = client.check_job(job_id)

Retrieve the results.

results = client.get_query_rows(job_id)

Can someone help me?