Browser library and grpcio on M1 Mac (ARM)

Hi @aaltat

You have solved the issue with grpcio Version 1.43 not building on M1 Mac, right?

from grpc._cython import cygrpc
ImportError: 
dlopen(~/.pyenv/versions/3.10.0/envs/robot/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so, 0x0002): 
tried: '~/.pyenv/versions/3.10.0/envs/robot/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so' 
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')),
'/usr/local/lib/cygrpc.cpython-310-darwin.so' (no such file),
'/usr/lib/cygrpc.cpython-310-darwin.so' (no such file)

Installing older grpcio version fixes that problem, but i think you mentioned that 1.43 works with some pip magic, right?

1 Like

I did preinstall grpc and grpc-tools with some pip magic:
pip install --no-binary :all: grpcio --ignore-installed
and
pip install --no-binary :all: grpcio-tools --ignore-installed

3 Likes