googleapis/python-ndb

problems running on Mac M1 (arm64)

Closed this issue · 3 comments

I can't seem to run my local tests ... do I have something installed wrong, or do I need to open the terminal under Rosetta?

import google.cloud.ndb as ndb
File "/Users/dgaedcke/dev/flask_gcp_py3_datastore/env/lib/python3.9/site-packages/google/cloud/ndb/init.py", line 28, in
from google.cloud.ndb.client import Client
File "/Users/dgaedcke/dev/flask_gcp_py3_datastore/env/lib/python3.9/site-packages/google/cloud/ndb/client.py", line 18, in
import grpc
File "/Users/dgaedcke/dev/TouchstoneMicroservices/lib/grpc/init.py", line 23, in
from grpc._cython import cygrpc as _cygrpc
ImportError: dlopen(/Users/dgaedcke/dev/TouchstoneMicroservices/lib/grpc/_cython/cygrpc.so, 2): no suitable image found. Did find:
/Users/dgaedcke/dev/TouchstoneMicroservices/lib/grpc/_cython/cygrpc.so: mach-o, but wrong architecture
/Users/dgaedcke/dev/TouchstoneMicroservices/lib/grpc/_cython/cygrpc.so: mach-o, but wrong architecture

it seems I've had success using conda miniforge and using this package

https://github.com/conda-forge/grpcio-feedstock

more testing to follow

Hi @dgaedcke ,

Looking at your stacktrace, it looks like this has to do with compiled C code in the grpc library. Maybe you could try asking the grpc forum:

https://groups.google.com/g/grpc-io