question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pandas requires google-cloud-python for Google BigQuery support:

See original GitHub issue

I used to do this in a datalab notebook

df = gbq.read_gbq('SELECT * FROM gsd_sample.blackman75', PROJECT)

Now, it says ImportError: pandas requires google-cloud-python for Google BigQuery support: cannot import name make_exception

In the python notebook, I am doing:

import math
import shutil
import numpy as np
import pandas as pd
import tensorflow as tf
import re
import matplotlib.pyplot as plt
import IPython.display as ipd
import os
import io
import sys
import base64
import hashlib
from sklearn import preprocessing
import datetime
from pandas.io import gbq


import apache_beam as beam
print tf.__version__

And prior to that, I do this in the datalab notebook

!pip install librosa soundfile google-cloud-storage pandas-gbq google-cloud-bigquery pandas-gbq google-cloud -U

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
netskinkcommented, Aug 29, 2018

Removed google-cloud from pip. Changed python interpreter from version 3 to version 2 and now it works.

1reaction
klekhrajcommented, Oct 4, 2018

Thanks @max-sixty, It worked. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas requires google-cloud-python for Google BigQuery ...
I used to do this in a datalab notebook df = gbq.read_gbq('SELECT * FROM gsd_sample.blackman75', PROJECT) Now, it says ImportError: pandas ...
Read more >
Comparison with pandas-gbq | BigQuery - Google Cloud
Loading a pandas DataFrame to a BigQuery table ... google-cloud-bigquery : The google-cloud-bigquery package requires the pyarrow library to serialize a pandas ......
Read more >
bigquery pandas df on datalab - python - Stack Overflow
I want to use pandas to pull from bigquery ...
Read more >
Installation — pandas-gbq documentation - Google Cloud
This installs pandas-gbq and all common dependencies, including pandas . Install from Source¶. $ pip install git+https://github.com/googleapis/python-bigquery ...
Read more >
pandas-gbq Documentation - Read the Docs
google -api-python-client: Google's API client (no longer required, replaced by google-cloud-bigquery:) • google-auth: authentication and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found