Thanks to visit codestin.com
Credit goes to github.com

Skip to content

M1 Macbook import from google.cloud import bigquery ModuleNotFoundError: No module named ‘google’  #1260

@adrian9122

Description

@adrian9122

Hi there,

Still seeing this error on M1 Macbook for the big query SDK.


Traceback (most recent call last):
File “./vlapp”, line 8, in <module>
 from google.cloud import bigquery
ModuleNotFoundError: No module named ‘google’

But when I run pip show google-cloud-bigquery the library is set up correctly.

Already tried these troubleshooting steps without success
-This issue is described in grpc/grpc#28387.
image (67)

-grpc/grpc#28387 (comment) has a workaround for installing the package from source (ignoring the wheel, which is not compatible). I also found a similar workaround googleapis/python-secret-manager#288 (comment).

Have attached snippets of CLI commands as well. Can we have someone assist with a permanent fix for this, as we are unable to proceed with our workflow due to this bug?

image (67)

image (66)

![image (65)](https://user-images.githubusercontent.com/34860198/170285064-ab77339f-61de-47b6-8cbc-93a082bc5869.png)

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery API.duplicateThis issue or pull request already existspriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions