question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install dbt 0.19.1 on M1 Apple Silicon and python 3.8.6

See original GitHub issue

Describe the bug

While on a new apple silicon mac, the user can only install dbt 0.18.2. Attempting to upgrade using pip yields the following error message:

ERROR: Could not find a version that satisfies the requirement snowflake-connector-python[secure-local-storage]==2.3.6 (from dbt-snowflake)
ERROR: No matching distribution found for snowflake-connector-python[secure-local-storage]==2.3.6

Steps To Reproduce

pip install dbt installs 0.18.2.

Expected behavior

Install the latest version (0.19.1) of dbt

Screenshots and log output

See above

System information

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • [x ] snowflake
  • other (specify: ____________)

The output of dbt --version:

installed version: 0.18.2
   latest version: 0.19.1
Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation
Plugins:
  - bigquery: 0.18.2
  - snowflake: 0.18.2
  - redshift: 0.18.2
  - postgres: 0.18.2

The operating system you’re using: Mac OS Big Sur

The output of python --version: Python 3.8.6 pip 21.0.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
drewbanincommented, Jun 26, 2021

I had a tricky time getting dbt installed in my dev env using:

  • Python 3.9
  • macOS Big Sur
  • an Apple silicon Mac

I tried running

pip install -r editable_requirements.txt

But i was seeing errors about the grpcio lib failing to install with an error about clang. I found this comment https://github.com/grpc/grpc/issues/24677#issuecomment-741814641 and ran:

GRPC_BUILD_WITH_BORING_SSL_ASM="" GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true pip install grpcio

And after that I was able to get dbt installed! Sharing in case it’s useful to anyone else 😃

4reactions
jtcohen6commented, Apr 9, 2021

@jtalmi I believe this is because of the version of pyarrow required by snowflake-connector-python==2.3.6. I think the best workaround for the time being is to instal Rosetta, which should then let you install via pip or Homebrew in a py38 as if using an Intel chip.

This is definitely something we’re aware of (e.g. over in https://github.com/fishtown-analytics/dbt/issues/3162):

  • Anyone not using Snowflake can install the latest version of their dbt adapter plugin on an M1 chip or in a py39 environment by specifying the adapter: pip install dbt-[adapter]
  • Anyone using Snowflake: We’ve bumped the version of snowflake-connector-python in the develop branch, which should now be M1/py39 compatible. This issue will be resolved in the next version of dbt (v0.20.0). Sorry for the pain in the meantime!
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install dbt 0.19.1 on M1 Apple Silicon and python ...
Describe the bug While on a new apple silicon mac, the user can only install dbt 0.18.2. Attempting to upgrade using pip yields...
Read more >
Installing dbt with Mac M1 Chips - InterWorks
Start by referencing the dbt Install Documentation. dbt includes specific instructions for installation on an M1 Mac.
Read more >
Has anyone successfully gotten DBT to run on apple silicon?
It looks like it's possible to run DBT via Rosetta on the M1 chip for now. I followed a similar set of instructions...
Read more >
Get dbt up and running from the command line on a MacBook ...
Step 1: Set up your Terminal to use Rosetta. · Step 2: Open your Terminal and uninstall any versions of dbt you may...
Read more >
Why installation of dbt fails? - Failed building wheel for tree-sitter
I'm trying to install dbt tool to Window 10. There is Python 3.9 and also VS2019 installed.(I don't know why required).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found