Mac Silicon installation issues
jomach opened this issue · 1 comments
Hi Guys,
after upgrading rust and creating a virtual environment for dbt with python 3.8 I can install dbt-extractor using pip install .
The problem is I get the error:
(dbt-env) > $ /Users/jorge/.venv/dbt-env/bin/dbt --version [±main ✓]
Traceback (most recent call last):
File "/Users/jorge/.venv/dbt-env/bin/dbt", line 5, in
from dbt.main import main
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/main.py", line 13, in
import dbt.task.build as build_task
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/task/build.py", line 1, in
from .run import RunTask, ModelRunner as run_model_runner
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/task/run.py", line 8, in
from .compile import CompileRunner, CompileTask
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/task/compile.py", line 2, in
from .runnable import GraphRunnableTask
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/task/runnable.py", line 54, in
from dbt.parser.manifest import ManifestLoader
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/parser/init.py", line 8, in
from .models import ModelParser # noqa
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt/parser/models.py", line 11, in
from dbt_extractor import ExtractionError, py_extract_from_source # type: ignore
File "/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt_extractor/init.py", line 1, in
from .dbt_extractor import *
ImportError: dlopen(/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt_extractor/dbt_extractor.cpython-38-darwin.so, 0x0002): tried: '/Users/jorge/.venv/dbt-env/lib/python3.8/site-packages/dbt_extractor/dbt_extractor.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/dbt_extractor.cpython-38-darwin.so' (no such file), '/usr/lib/dbt_extractor.cpython-38-darwin.so' (no such file)
Any ideas ?
@jomach We highly recommend you install dbt on M1 Macs via Homebrew + Rosetta, following the outline here: https://hackernoon.com/apple-m1-chip-how-to-install-homebrew-using-rosetta-su12331b. It's how I've been using dbt on my M1 Mac for a few months now, and it's been working without a hitch.
We use GitHub Actions to build wheels for this package on different system architectures. We aren't yet able to build wheels for Mac silicon architectures, because GHA does not yet support it as a runner: actions/runner-images#2187