Hello, team. Has anyone faced this error before? s...
# troubleshoot
r
Hello, team. Has anyone faced this error before? seems like a problem with Apple M1 setup for grpc. Couldn't find a working solution online.
Copy code
ImportError: dlopen(/private/var/folders/r9/kkk0b47j4fl9f0nlyxsw7dyr0000gn/T/pip-build-env-ls6nbxyb/overlay/lib/python3.10/site-packages/grpc_tools/_protoc_compiler.cpython-310-darwin.so, 0x0002): tried: '/private/var/folders/r9/kkk0b47j4fl9f0nlyxsw7dyr0000gn/T/pip-build-env-ls6nbxyb/overlay/lib/python3.10/site-packages/grpc_tools/_protoc_compiler.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
This error occurs while building datahub's command line tool (or) while building datahub's documentation.
Copy code
./gradlew :metadata-ingestion:installDev
./gradlew :docs-website:yarnLintFix :docs-website:build -x :metadata-ingestion:runPreFlightScript
This task is failing:
Copy code
> Task :metadata-ingestion:installDevTest FAILED
with Error:
Copy code
...
Successfully built acryl-datahub
Failed to build feast
ERROR: Could not build wheels for feast, which is required to install pyproject.toml-based projects
Using Python Version
3.10.8
Fixed the issue by installing grpcio from source distribution and installing feast
Copy code
$ pip install --no-binary :all: grpcio-tools==1.50.0
$ pip install --upgrade --no-cache-dir --use-deprecated=legacy-resolver feast
b
nice Rahul! M1's can be tricky lol but we appreciate you posting your solution as well