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

free(): invalid pointer Aborted error when importing from google.cloud import bigquery in python #695

Closed
rituraj17 opened this issue Jun 7, 2021 · 2 comments · Fixed by #725
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@rituraj17
Copy link

I started facing this peculiar issue while import importing BigQuery in python scripts as well as in the terminal.
Can anyone help me out here?
I even tried to downgrade the bigquery package from 2.20 to 2.1 its still give me the same error

root@f6968ce75f9d:~# python 
Python 3.7.10 (default, May 28 2021, 10:36:10) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import bigquery
free(): invalid pointer
Aborted

Screenshot 2021-06-07 at 10 31 45 PM

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jun 7, 2021
@plamut plamut added external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 8, 2021
@plamut
Copy link
Contributor

plamut commented Jun 8, 2021

@rituraj17 This sounds a lot like an issue opened in the Pub/Sub repo. It's an issue in grpcio that has now been fixed, just not released yet.

Until it's released, does the workaround posted in the related issue work for you?
(essentially, grpc should be imported before proto.message)

import grpc
import proto.message
from google.cloud import bigquery

@plamut
Copy link
Contributor

plamut commented Jun 28, 2021

This has been fixed and released in grpcio 1.38.1. Will update the version pin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants