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.

Import error with pandas_gbq

See original GitHub issue

There’s a bug with the most recent google bigquery library. Hence, this error occurs in pandas-gbq

ImportError: pandas-gbq requires google-cloud-bigquery: cannot import name 'collections_abc'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
austinliuucommented, Oct 21, 2020

If you’re in a notebook, you often have to restart the kernel to pick up any package changes.

You might want to try running importlib.reload(six) after the installation. See the docs for reload.

After reloading the module using importlib notebook is able to pick up 1.15.0 six. Thank you @tswast

2reactions
tswastcommented, Oct 21, 2020

If you’re in a notebook, you often have to restart the kernel to pick up any package changes.

You might want to try running importlib.reload(six) after the installation. See the docs for reload.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import error with pandas_gbq · Issue #304 - GitHub
Hence, this error occurs in pandas-gbq. ImportError: pandas-gbq requires google-cloud-bigquery: cannot import name 'collections_abc'.
Read more >
bigquery pandas df on datalab - python - Stack Overflow
Install pandas-gbq with pip install pandas-gbq or conda install pandas-gbq to address the error you pasted, and also ensure auth is happening ...
Read more >
Installation — pandas-gbq 0.14.1+1.g97c9aaa documentation
This installs pandas-gbq and all common dependencies, including pandas . Install from Source¶. $ pip install git+https://github.com/pydata/pandas-gbq.
Read more >
pandas_gbq.gbq — pandas-gbq documentation - Google Cloud
TYPE_CHECKING: # pragma: NO COVER import pandas from pandas_gbq.exceptions import AccessDenied, GenericGBQException from pandas_gbq.features import FEATURES ...
Read more >
pandas-gbq - PyPI
Perform a query. import pandas_gbq result_dataframe = pandas_gbq.read_gbq("SELECT column FROM dataset.table WHERE value = 'something'") ; Upload a dataframe.
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