-
Notifications
You must be signed in to change notification settings - Fork 122
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
Import error with pandas_gbq #304
Comments
Is this Python 3.8? How did you install
|
Similar issue on python 3.7.4. I installed it using pip |
Root cause: The To be fixed by googleapis/google-cloud-python#9979 |
Thanks! |
pandas-gbq requires google-cloud-bigquery: cannot import name collections_abc |
my package installed on the cloud: |
@Allenhuang0708 Did you fix it? It seems I got the same issue |
This library requires python3 |
If anyone is on python3 and still has this problem, please post the versions of this library, google-cloud-bigquery, and six. |
I'm having the same issue with Python 3.7 @max-sixty Package Version adal 1.2.0 |
Thanks @aoliu95 , I'll look at this. Do you have a stack trace to hand? |
@aoliu95 can you upgrade pandas-gbq? The latest is 0.14.0, I see yours is 0.12.0? |
I did bump to 0.14.0 and it reports the same error @max-sixty
Also the trace:
|
This was added in six 1.13.0 https://github.com/benjaminp/six/blob/master/CHANGES You aren't the first person to hit this issue, so I wonder if there's some funny business with |
I remembered google-cloud-bigquery bumped their dependency for six to 1.13.0. |
Thanks @aoliu95 , that's v helpful It's confusing that we have an error on
It's unfortunate we lose the stack trace of the original import error; that would be helpful to work out what's going on... This doesn't repro on a new image:
What happens if you upgrade |
I tried with google-cloud-bigquery==2.2.0, it seems not helping. @max-sixty
|
@aoliu95 what is the output of I suspect when you actually run Python it might not be getting the version of six that is listed here. |
it prints out "1.11.0", so it is likely to be the cause. I did have
Any hint on why? @tswast |
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 |
After reloading the module using |
The issue is with the version of |
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'
The text was updated successfully, but these errors were encountered: