Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

[CT-1055] [Bug] brew install dbt-redshift fails on new M1 MacBook Pro #160

Closed
1 task done
johnpkennedy opened this issue Aug 18, 2022 · 5 comments · Fixed by #161
Closed
1 task done

[CT-1055] [Bug] brew install dbt-redshift fails on new M1 MacBook Pro #160

johnpkennedy opened this issue Aug 18, 2022 · 5 comments · Fixed by #161
Labels

Comments

@johnpkennedy
Copy link

johnpkennedy commented Aug 18, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

dbt-redshift does not install using homebrew on a new, out-of-the-box Apple M1 MacBook Pro running macOS 12.5.1

Expected Behavior

I expect the installation to complete successfully

Steps To Reproduce

  1. Open Terminal
  2. Install Homebrew by following the instructions at https://brew.sh/. This will also install the Xcode Command Line Tools.
  3. brew update
  4. brew install git
  5. brew tap dbt-labs/dbt
  6. brew install dbt-redshift

Relevant log output

% brew install dbt-redshift
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2022-07-19_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:9e0df163364a5ae07f3ee2cf39083cd74bcb38eeb5250b706e1c02f878d8d6
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9e0df163364a5ae07f3ee2cf39083cd74bcb38eeb5250b706e1c02f
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1q
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:4e7b6cb2252c554a8e25ecae960f2fcd9a7fa742aa3fc99e6b533bb4e5d32483
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:4e7b6cb2252c554a8e25ecae960f2fcd9a7fa742aa3fc99e6b533bb
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libssh2/manifests/1.10.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libssh2/blobs/sha256:f9dab718cfa591fa90dc716a337e4c2c1da2db651b669565c3cc08e6a6074f28
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f9dab718cfa591fa90dc716a337e4c2c1da2db651b669565c3cc08e
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/blobs/sha256:2af9bceb60b70a259f236f1d46d2bb24c4d0a4af8cd63d974dde4d76313711e0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:2af9bceb60b70a259f236f1d46d2bb24c4d0a4af8cd63d974dde4d7
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/rust/manifests/1.63.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/rust/blobs/sha256:f40c3ae3595fa41433e87cf0b02d5c26234c5fa30ddf7a4dc3702bdebc74fcee
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f40c3ae3595fa41433e87cf0b02d5c26234c5fa30ddf7a4dc3702bd
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/70.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/blobs/sha256:43cf787a35559b90597db8e1aaba95dbeedb84b1ee3d2e942be8938ae618724c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:43cf787a35559b90597db8e1aaba95dbeedb84b1ee3d2e942be8938
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/manifests/1.20
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/blobs/sha256:ad559a03cc8661b668d51d71d3dc44b84eb853b35415aa0cc0a75fefc15bfeb6
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ad559a03cc8661b668d51d71d3dc44b84eb853b35415aa0cc0a75fe
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/manifests/1.9.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/blobs/sha256:284fa580570efdc8056e4fc95dc05f7b0546aa0c346795dd616d4cec8eb99426
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:284fa580570efdc8056e4fc95dc05f7b0546aa0c346795dd616d4ce
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.1.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:9d9d9512c80c6ae7c8281da84533222d90cb5e06accdfa98e0bff37672793cec
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9d9d9512c80c6ae7c8281da84533222d90cb5e06accdfa98e0bff37
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/postgresql/manifests/14.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/postgresql/blobs/sha256:a5e6220e0a3307c9039883a54b58867bccc93e09cc27c701598bf3bfd791e821
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a5e6220e0a3307c9039883a54b58867bccc93e09cc27c701598bf3b
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.23
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:62a2c1994737a2677f318a97ac64a32690f9f958086310a49f37e3fcfd5b6731
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:62a2c1994737a2677f318a97ac64a32690f9f958086310a49f37e3f
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/manifests/2.5.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/blobs/sha256:726e8ec0713eb452bb744fe9147771bacc2c3713a128aaee03b6ddcc78011d1a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:726e8ec0713eb452bb744fe9147771bacc2c3713a128aaee03b6ddc
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.39.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:a8b1ae9f882330df5e521dd95856b442e19c163e55a4da23b3fc42915df7a717
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a8b1ae9f882330df5e521dd95856b442e19c163e55a4da23b3fc429
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.2.6
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:345b942fb105c850d6243d91502fa285408cfcc7d78d9aaf27322acea608e901
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:345b942fb105c850d6243d91502fa285408cfcc7d78d9aaf27322ac
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/manifests/3.9.13_3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:c5a2739c0b343e83fbc2ab8449131327c065d04887ad965f0716259bd601e988
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c5a2739c0b343e83fbc2ab8449131327c065d04887ad965f0716259
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/ae/0e/34231b11f1b80463f64c5be7d7279de5a5609a47c59c0e34ba7016e4e333/agate-1.6.3.tar.g
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/d7/77/ebb15fc26d0f815839ecd897b919ed6d85c050feeb83e100e020df9153d2/attrs-21.4.0.tar.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/51/27/81e9cf804a34a550a47cc2f0f57fe4935281d479ae3a0ac093d69476f221/Babel-2.10.3.tar.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/40/36/41f4a54070314d899cef60a0c43e69a10929d68642bf2f1ae7c28017cddd/boto3-1.24.37.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/b6/f2/e3f57019830a6a85109c7842babf930bfad80fa4978dce915c9bc1e8c725/botocore-1.27.37.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/cc/85/319a8a684e8ac6d87a1193090e06b6bbb302717496380e225ee10487c888/certifi-2022.6.15
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/2b/a8/050ab4f0c3d4c1b8aaa805f70e26e84d0e27004907c5b8ecc1d31815f92a/cffi-1.15.1.tar.g
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/93/1d/d9392056df6670ae2a29fcb04cfa5cee9f6fbde7311a1bb511d4115e9b7a/charset-normalize
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/59/87/84326af34517fca8c58418d148f2403df25303e02736832403587318e9e8/click-8.1.3.tar.g
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/2b/65/24d033a9325ce42ccbfa3ca2d0866c7e89cc68e5b9d92ecaba9feef631df/colorama-0.4.5.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/4c/b9/b12a99d0c73bb5575e71783b189665dc466d9640a0686cf60e9329801cbc/dbt-core-1.2.0.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/af/2e/a110b40212480fd02bff567ff84effea8b9937ccd6ebfad0f10a382183d2/dbt_extractor-0.4
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/cf/35/0001fa3f1d6bedb601c6a20a96c83f86ed6205b15033ee90462c93927612/dbt-postgres-1.2.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/f7/c7/532cba3069f5b5495d1bb1a8c9021d02226cd6e69810911a2b559acdca94/hologram-0.0.15.t
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/db/7a/c0a56c7d56c7fa723988f122fa1f1ccf8c5c4ccc48efad0d214b49e5b1af/isodate-0.6.1.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/4f/e7/65300e6b32e69768ded990494809106f87da1d436418d5f1367ed3966fd7/Jinja2-2.11.3.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/00/2a/e867e8531cf3e36b41201936b7fa7ba7b5702dbef42922193f05c8976cd6/jmespath-1.0.1.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/69/11/a69e2a3c01b324a77d3a7c0570faa372e8448b666300c4117a516f8b1212/jsonschema-3.2.0.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/73/c5/5bc5a19a62147ee8ff2de7b416ee6534b5bd79f22c790d0365ebef223f34/leather-0.3.4.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/2f/d9/16ac346f7c0102835814cc9e5b684aaadea101560bb932a2403bd26b2320/Logbook-1.5.3.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/7e/63/444b64d7177a49337e0698ce7b6d19d47509c5c963b3793c5ddf671d08f7/mashumaro-2.9.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/e4/9f/004f810169a48ed5c520279d98327e7793b6491f09d42cb2c5636c994f34/minimal-snowplow-
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/22/44/0829b19ac243211d1d2bd759999aa92196c546518b0be91de9cacc98122a/msgpack-1.0.4.tar
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/3f/5e/5e9ae193c6384bd47aae5bc9bd2c48db7115f483b0ff9fef7d263e3dbb09/networkx-2.8.tar.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/e3/b3/02385db13f1f25f04ad7895f35e9fe3960a4b9d53112775a6f7d63f264b6/parsedatetime-2.4
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/d7/1c/8d042630c5ff3c3e6d93c992bd7ecf516d577803b96781c6caa649bbf6e5/psycopg2-binary-2
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/5e/0b/95d387f5f4433cb0f53ff7ad859bd2c6051051cebbb564f139a999ab46de/pycparser-2.21.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/71/22/207523d16464c40a0310d2d4d8926daffa00ac1f5b1576170a32db749636/pyparsing-3.0.9.t
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/42/ac/455fdc7294acc4d4154b904e80d964cc9aae75b087bbf486be04df9f2abd/pyrsistent-0.18.1
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/5d/45/915967d7bcc28fd12f36f554e1a64aeca36214f2be9caf87158168b5a575/python-slugify-6.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/37/5d/231f5f33c81e09682708fb323f9e4041408d8223e2f0fb9742843328778f/pytimeparse-1.1.8
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/2f/5f/a0f653311adff905bbcaa6d3dfaf97edcf4d26138393c6ccd37a484851fb/pytz-2022.1.tar.g
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/a5/61/a867851fd5ab77277495a8709ddda0861b28163c4613b011bc00228cc724/requests-2.28.1.t
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/e1/eb/e57c93d5cd5edf8c1d124c831ef916601540db70acd96fa21fe60cef1365/s3transfer-0.6.0.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/32/fe/8a8575debfd924c8160295686a7ea661107fc34d831429cce212b6442edb/sqlparse-0.4.2.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/ab/e2/e9a00f0ccb71718418230718b3d900e71a5d16e701a3dae079a21e9cd8f8/text-unidecode-1.
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/9e/1d/d128169ff58c501059330f1ad96ed62b79114a2eb30b8238af63a2e27f70/typing_extensions
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/6d/d5/e8258b334c9eb8eb78e31be92ea0d5da83ddd9385dc967dd92737604d239/urllib3-1.26.11.t
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/10/cf/97eb1a3847c01ae53e8376bc21145555ac95279523a935963dc8ff96c50b/Werkzeug-2.1.2.ta
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/a9/0b/7e78e8973a712cb29c6a768108b93c6cd3f0dcaf337215d6b7000e7a0a9e/dbt-redshift-1.2.
######################################################################## 100.0%
==> Installing dbt-redshift from dbt-labs/dbt
==> Installing dependencies for dbt-labs/dbt/dbt-redshift: ca-certificates, openssl@1.1, libssh2, pkg-config, rust, icu4c, krb5, lz4, readline, postgresql, gdbm, mpdecimal, sqlite, xz and python@3.9
==> Installing dbt-labs/dbt/dbt-redshift dependency: ca-certificates
==> Pouring ca-certificates--2022-07-19_1.all.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺  /opt/homebrew/Cellar/ca-certificates/2022-07-19_1: 3 files, 222.6KB
==> Installing dbt-labs/dbt/dbt-redshift dependency: openssl@1.1
==> Pouring openssl@1.1--1.1.1q.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/openssl@1.1/1.1.1q: 8,097 files, 18MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: libssh2
==> Pouring libssh2--1.10.0.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/libssh2/1.10.0: 184 files, 1MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: pkg-config
==> Pouring pkg-config--0.29.2_3.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/pkg-config/0.29.2_3: 11 files, 676.4KB
==> Installing dbt-labs/dbt/dbt-redshift dependency: rust
==> Pouring rust--1.63.0.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/rust/1.63.0: 35,438 files, 846.7MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: icu4c
==> Pouring icu4c--70.1.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/icu4c/70.1: 261 files, 74.9MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: krb5
==> Pouring krb5--1.20.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/krb5/1.20: 162 files, 5.6MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: lz4
==> Pouring lz4--1.9.4.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/lz4/1.9.4: 22 files, 681.4KB
==> Installing dbt-labs/dbt/dbt-redshift dependency: readline
==> Pouring readline--8.1.2.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/readline/8.1.2: 48 files, 1.7MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: postgresql
==> Pouring postgresql--14.5.arm64_monterey.bottle.tar.gz
==> /opt/homebrew/Cellar/postgresql/14.5/bin/initdb --locale=C -E UTF-8 /opt/homebrew/var/postgres
🍺  /opt/homebrew/Cellar/postgresql/14.5: 3,309 files, 45.1MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: gdbm
==> Pouring gdbm--1.23.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/gdbm/1.23: 24 files, 1MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: mpdecimal
==> Pouring mpdecimal--2.5.1.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/mpdecimal/2.5.1: 71 files, 2.2MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: sqlite
==> Pouring sqlite--3.39.2.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/sqlite/3.39.2: 11 files, 4.4MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: xz
==> Pouring xz--5.2.6.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/xz/5.2.6: 95 files, 1.5MB
==> Installing dbt-labs/dbt/dbt-redshift dependency: python@3.9
==> Pouring python@3.9--3.9.13_3.arm64_monterey.bottle.tar.gz
==> /opt/homebrew/Cellar/python@3.9/3.9.13_3/bin/python3.9 -m ensurepip
==> /opt/homebrew/Cellar/python@3.9/3.9.13_3/bin/python3.9 -m pip install -v --no-deps --no-index --upgrade --isolated --target=/opt/homebrew/lib/python3.9/site-packages /opt/homebrew/Cellar/python@3.9/3.9.13_3/Frameworks
🍺  /opt/homebrew/Cellar/python@3.9/3.9.13_3: 3,069 files, 57.4MB
==> Installing dbt-labs/dbt/dbt-redshift
==> python3 -m venv --system-site-packages /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python -m pip install pip==22.0.4
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--agate-20220817-11233-h02qpi/agate-1.6.3
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--attrs-20220817-11233-1fwszxq/attrs-21.4.0
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--Babel-20220817-11233-16wfvy2/Babel-2.10.3
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--boto3-20220817-11233-j3ttnk/boto3-1.24.37
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--botocore-20220817-11233-1wzhn1i/botocore-1.27.37
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--certifi-20220817-11233-1xnqvou/certifi-2022.6.15
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--cffi-20220817-11233-h54tug/cffi-1.15.1
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--charset-normalizer-20220817-11233-1uhsfo5/charset-normalizer-2.1.0
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--click-20220817-11233-1jgs4e0/click-8.1.3
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--colorama-20220817-11233-ee4tao/colorama-0.4.5
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--dbt-core-20220817-11233-11bb1zp/dbt-core-1.2.0
==> /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/dbt-redshift--dbt-extractor-20220817-11233-niehh8/dbt_extractor-0.4.1
Last 15 lines from /Users/johnkennedy/Library/Logs/Homebrew/dbt-redshift/14.pip:
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python /private/tmp/pip-standalone-pip-7a_tiv7o/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-gz08kdl5/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.12,<0.13'
  cwd: [inherit]
  Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python -m pip install --upgrade pip' command.

Do not report this issue to Homebrew/brew or Homebrew/core!

Environment

- OS: macOS 12.3
- Python: 
- dbt: 1.2.0

What Homebrew formula are you trying to install?

redshift

Additional Context

Here's the contents of the 14.pip log file from the ~/Library/Logs/Homebrew/dbt-redshift directory:

/opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/pip
install
-v
--no-deps
--no-binary
:all:
--ignore-installed
/private/tmp/dbt-redshift--dbt-extractor-20220818-5568-1p7pvo/dbt_extractor-0.4.1

Using pip 22.0.4 from /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/lib/python3.8/site-packages/pip (python 3.8)
Processing /private/tmp/dbt-redshift--dbt-extractor-20220818-5568-1p7pvo/dbt_extractor-0.4.1
  Installing build dependencies: started
  Running command pip subprocess to install build dependencies
  Collecting maturin<0.13,>=0.12
    Downloading maturin-0.12.20.tar.gz (156 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.9/156.9 KB 2.4 MB/s eta 0:00:00
    Installing build dependencies: started
    Installing build dependencies: finished with status 'error'
    error: subprocess-exited-with-error

    × pip subprocess to install build dependencies did not run successfully.
    │ exit code: 1
    ╰─> [107 lines of output]
        Collecting setuptools~=53.0.0
          Downloading setuptools-53.0.0.tar.gz (2.1 MB)
             ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 16.8 MB/s eta 0:00:00
          Preparing metadata (setup.py): started
          Preparing metadata (setup.py): finished with status 'done'
        Collecting wheel~=0.36.2
          Downloading wheel-0.36.2.tar.gz (65 kB)
             ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.4/65.4 KB 2.3 MB/s eta 0:00:00
          Preparing metadata (setup.py): started
          Preparing metadata (setup.py): finished with status 'done'
        Collecting tomli>=1.1.0
          Downloading tomli-2.0.1.tar.gz (15 kB)
          Installing build dependencies: started
          Installing build dependencies: finished with status 'done'
          Getting requirements to build wheel: started
          Getting requirements to build wheel: finished with status 'done'
          Preparing metadata (pyproject.toml): started
          Preparing metadata (pyproject.toml): finished with status 'done'
        Collecting setuptools-rust
          Downloading setuptools-rust-1.5.1.tar.gz (24 kB)
          Installing build dependencies: started
          Installing build dependencies: finished with status 'done'
          Getting requirements to build wheel: started
          Getting requirements to build wheel: finished with status 'done'
          Installing backend dependencies: started
          Installing backend dependencies: finished with status 'done'
          Preparing metadata (pyproject.toml): started
          Preparing metadata (pyproject.toml): finished with status 'error'
          error: subprocess-exited-with-error

          × Preparing metadata (pyproject.toml) did not run successfully.
          │ exit code: 1
          ╰─> [62 lines of output]
              running dist_info
              creating /private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info
              writing /private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info/PKG-INFO
              writing dependency_links to /private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info/dependency_links.txt
              writing entry points to /private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info/entry_points.txt
              writing requirements to /private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info/requires.txt
              writing top-level names to /private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info/top_level.txt
              writing manifest file '/private/tmp/pip-modern-metadata-b3x7bnvk/setuptools_rust.egg-info/SOURCES.txt'
              Traceback (most recent call last):
                File "/private/tmp/tmp7bqbo_iv", line 363, in <module>
                  main()
                File "/private/tmp/tmp7bqbo_iv", line 345, in main
                  json_out['return_val'] = hook(**hook_input['kwargs'])
                File "/private/tmp/tmp7bqbo_iv", line 164, in prepare_metadata_for_build_wheel
                  return hook(metadata_directory, config_settings)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
                  self.run_setup()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
                  exec(compile(code, __file__, 'exec'), locals())
                File "setup.py", line 6, in <module>
                  setup()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
                  return distutils.core.setup(**attrs)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
                  dist.run_commands()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
                  self.run_command(cmd)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
                  cmd_obj.run()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/dist_info.py", line 31, in run
                  egg_info.run()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 297, in run
                  self.find_sources()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 304, in find_sources
                  mm.run()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 535, in run
                  self.add_defaults()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 571, in add_defaults
                  sdist.add_defaults(self)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 226, in add_defaults
                  self._add_defaults_python()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/sdist.py", line 135, in _add_defaults_python
                  build_py = self.get_finalized_command('build_py')
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 299, in get_finalized_command
                  cmd_obj.ensure_finalized()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
                  self.finalize_options()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/build_py.py", line 39, in finalize_options
                  orig.build_py.finalize_options(self)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/command/build_py.py", line 43, in finalize_options
                  self.set_undefined_options('build',
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 286, in set_undefined_options
                  src_cmd_obj = self.distribution.get_command_obj(src_cmd)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 858, in get_command_obj
                  klass = self.get_command_class(command)
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 768, in get_command_class
                  self.cmdclass[command] = cmdclass = ep.load()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2461, in load
                  return self.resolve()
                File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2467, in resolve
                  module = __import__(self.module_name, fromlist=['__name__'], level=0)
              ModuleNotFoundError: No module named 'setuptools.command.build'
              [end of output]

          note: This error originates from a subprocess, and is likely not a problem with pip.
        error: metadata-generation-failed

        × Encountered error while generating package metadata.
        ╰─> See above for output.

        note: This is an issue with the package mentioned above, not pip.
        hint: See above for details.
        WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
        You should consider upgrading via the '/opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python -m pip install --upgrade pip' command.
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
  You should consider upgrading via the '/opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python -m pip install --upgrade pip' command.
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python /private/tmp/pip-standalone-pip-vh1j_l7r/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-yesd38jy/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'maturin>=0.12,<0.13'
  cwd: [inherit]
  Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/opt/homebrew/Cellar/dbt-redshift/1.2.0/libexec/bin/python -m pip install --upgrade pip' command.

HOMEBREW_VERSION: 3.5.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3748bed378401ed75abdf32bcb3d2674d854a6f9
Last commit: 8 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 88232c9559f0644a8f52825f35e0f01a6a20710c
Core tap last commit: 30 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.37.2 => /opt/homebrew/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5.1-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
Rosetta 2: false

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /opt/homebrew/opt/icu4c:/opt/homebrew/opt/openssl@1.1:/opt/homebrew/opt/krb5:/opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/python@3.9/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/openssl@1.1/lib/pkgconfig:/opt/homebrew/opt/krb5/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/postgresql/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/python@3.9/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/12
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/rust/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/krb5/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/postgresql/bin:/opt/homebrew/opt/gdbm/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/python@3.9/bin:/usr/bin:/bin:/usr/sbin:/sbin

No response

@johnpkennedy johnpkennedy changed the title [Bug] brew install dbt-redshift fails on brand new M1 MacBook Pro running macOS 12.3 [Bug] brew install dbt-redshift fails on brand new M1 MacBook Pro (macOS 12.3) Aug 18, 2022
@github-actions github-actions bot changed the title [Bug] brew install dbt-redshift fails on brand new M1 MacBook Pro (macOS 12.3) [CT-1055] [Bug] brew install dbt-redshift fails on brand new M1 MacBook Pro running macOS 12.3 Aug 18, 2022
@johnpkennedy
Copy link
Author

johnpkennedy commented Aug 18, 2022

A co-worker reproduced this problem on their Apple M1 MacBook Pro. I suspect this is a new problem because this co-worker successfully used homebrew to install dbt-redshift on the same computer a few weeks ago.

@johnpkennedy johnpkennedy changed the title [CT-1055] [Bug] brew install dbt-redshift fails on brand new M1 MacBook Pro running macOS 12.3 [CT-1055] [Bug] brew install dbt-redshift fails on new M1 MacBook Pro (macOS 12.3) Aug 18, 2022
@johnpkennedy johnpkennedy changed the title [CT-1055] [Bug] brew install dbt-redshift fails on new M1 MacBook Pro (macOS 12.3) [CT-1055] [Bug] brew install dbt-redshift fails on new M1 MacBook Pro Aug 18, 2022
@johnpkennedy
Copy link
Author

There are reports of similar problems in the dbt Slack community with dbt-bigquery and dbt-snowflow:

dbt-snowflake
https://getdbt.slack.com/archives/CBSQTAPLG/p1660578228126429

dbt-bigquery
https://getdbt.slack.com/archives/CBSQTAPLG/p1660511246571909

@kyleries
Copy link

@johnpkennedy - I just completed and tested a fix for this locally. I'm putting together a comprehensive write-up, but the short story is that the venv created during installation defaults to using the system-site-packages (meaning the installation is at risk of trying to leverage incompatible dependencies). So, an option is to disallow the use of the system-site-packages.

If you feel comfortable doing so, you can locally edit the formula to accomplish this and complete the install (perhaps helpful if you and/or your team are currently blocked by this issue), though clearly not a dependable long term solution. After I post my write-up and get some feedback from the dbt-labs team, we'll get a longer term solution implemented. The downside of my approach is that the build time is generally much longer (#tradeoff), and there may be a better place to lockdown the dependency.

Anywho - as for the short term solution:

brew edit dbt-labs/homebrew-dbt

That should open up the formula on your machine for editing. You can then navigate to the formula you are interested in. For instance, Formula/dbt-bigquery@1.2.0.rb. In that file, down around line 290, locate this line:

venv = virtualenv_create(libexec, "python3")

and modify if to be:

venv = virtualenv_create(libexec, "python3", system_site_packages: false)

Save the file and then re-attempt installation. It will take longer, but should solve the problem from the log. Specifically, it should ensure that setuptools version 62 or greater is used rather than the version 53 (from your logs) that it found "elsewhere".

@ChenyuLInx
Copy link
Contributor

@kyleries thanks for looking into this and get a solution out!! We(devs for dbt) noticed the issue also, two of the tests are failing. I have almost 0 experience with Homebrew. Helps and guidances are greatly appreciated!!

Question from my side:

  1. Any idea why some adapters would fail and some succeeded? And dbt-redshift in the Github Action actually succeeded, but failed for @johnpkennedy
  2. Any idea why this failure would suddenly happen? we actually freezed the pip version due to a previous pip issue.

Happy to move forward with the solution you have now, slow is infinite times better than fail IMO. You mentioned lockdown the dependency, is it setuptools that we should lock down?

@ChenyuLInx
Copy link
Contributor

@kyleries I just did a find and replace for the command, and opened a draft PR. Any chance you can help review it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants