Can`t run rfbrowser init on MacOs M1

Trying to install the Browser Library on a MacOs M1 but when i try to run rfbrowser init i get the following error:

    Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/rfbrowser", line 5, in <module>
    from Browser.entry import run
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Browser/", line 16, in <module>
    from .browser import Browser
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Browser/", line 39, in <module>
    from .keywords import (
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Browser/keywords/", line 19, in <module>
    from .getters import Getters
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Browser/keywords/", line 19, in <module>
    import grpc  # type: ignore
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/grpc/", line 22, in <module>
    from grpc import _compression
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/grpc/", line 15, in <module>
    from grpc._cython import cygrpc
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/grpc/_cython/, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/grpc/_cython/' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

What i need to do to be able to use Browser Library on a MacOs M1 laptop ?


I don’t own MACos myself, but do you have
but do you have also nodo, js installed (Download | Node.js)?

I did a quick search for' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) and then cygrpc.cpython is an incompatible architecture have 'x86_64', need 'arm64e' which I pulled out of the last line of your error.

It looks like you may have run into this issue [Python][macOS] 3.10 wheel is mislabeled as universial2 · Issue #28387 · grpc/grpc · GitHub

I’m guessing you have Python 3.10.x ? That issue is still open so it doesn’t look like there is a fix yet :frowning:


Yes i have

Thanks Dave! It’s exactly this… I`ve downgraded python to 3.9 and now everything works fine.

1 Like