Trouble Upgrading dbt on MacBook Pro with Apple M1

Hello everyone :sunglasses:,

I am encountering difficulties while upgrading dbt core from version 1.3.5 to 1.4.0 on my MacBook Pro with an Apple M1 chip. I’ve previously installed dbt core successfully, including the Snowflake adapter, following the Homebrew installation guide. However, the upgrade process isn’t going smoothly.

Here’s a breakdown of the issues:

Homebrew Installation Errors:

Attempting to upgrade using brew install dbt-snowflake@1.4.0 results in an “error: subprocess-exited-with-error” message.

error: subprocess-exited-with-error

Log analysis indicates problems building a PyYAML wheel, which appears to be the root cause.

Pip Installation Issues:

Installation via pip generates warnings about the dbt script not being on the PATH.

Although the installation completes, running dbt --version yields a “command not found” error.

Python Version Conflicts:

My system uses Python 3.9.6.

Despite trying to uninstall Python 12, it persistently reappears during dbt installation attempts.

I also came across this resource/article: Visual Studio Code - DBT command not working MacBook M1 but dbt bigQuery Power User works just fine prompt engineer skills - Stack Overflow, but I’m still struggling with some aspects. Perhaps there’s another approach I could consider?

I would greatly appreciate any guidance on resolving these issues. Specifically, advice on fixing Homebrew installation errors, addressing pip PATH problems, or ensuring Python version compatibility would be immensely helpful.

Thank you :pray: :pray:for your time and assistance!!