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

Skip to content

Getting error once running script over M1 OS "mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))" #1262

@tamerkadan1988

Description

@tamerkadan1988

Hi Team,

As people mentioned before, we are still having issues with M1 Apple to run such scripts.

am having this error :

Traceback (most recent call last): File "./vlapp", line 8, in <module> from google.cloud import bigquery File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/google/cloud/bigquery/__init__.py", line 35, in <module> from google.cloud.bigquery.client import Client File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/google/cloud/bigquery/client.py", line 59, in <module> from google.cloud.bigquery_storage_v1.services.big_query_read.client import ( File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/google/cloud/bigquery_storage_v1/__init__.py", line 25, in <module> from google.cloud.bigquery_storage_v1 import client File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/google/cloud/bigquery_storage_v1/client.py", line 24, in <module> import google.api_core.gapic_v1.method File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module> from google.api_core.gapic_v1 import config File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module> import grpc File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/grpc/__init__.py", line 22, in <module> from grpc import _compression File "/Users/tamerz/Library/Python/3.8/lib/python/site-packages/grpc/_compression.py", line 15, in <module> from grpc._cython import cygrpc ImportError: dlopen(/Users/tamerz/Library/Python/3.8/lib/python/site-packages/grpc/_cython/cygrpc.cpython-38-darwin.so, 0x0002): tried: '/Users/tamerz/Library/Python/3.8/lib/python/site-packages/grpc/_cython/cygrpc.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/cygrpc.cpython-38-darwin.so' (no such file), '/usr/lib/cygrpc.cpython-38-darwin.so' (no such file)

Environment details

  • OS type and version: ‏MacBook Pro, M1 MAX chip
  • Python version: python --version -> python3.8.5
  • pip version: pip --version -> pip3

gave the script the 777 chmod and also tried reinstall the python version + upgrade
Tried also installing the google package and uninstall it.
also tried those packages :
pip install --no-binary :all: grpcio --ignore-installed
pip install --no-binary :all: grpcio-tools --ignore-installed

Metadata

Metadata

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.externalThis issue is blocked on a bug with the actual product.priority: 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