Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named bigquery #142

Open
joeleidelmanm opened this issue Sep 27, 2017 · 0 comments
Open

ImportError: No module named bigquery #142

joeleidelmanm opened this issue Sep 27, 2017 · 0 comments

Comments

@joeleidelmanm
Copy link

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 = '[email protected]'

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant