Andy Carter
11/05/2025, 8:24 AMtap-redshift (monad variant) but receiving some errors regarding psycopg2, logs in the thread.
Is there anything I can do regarding dependencies or might a local fork be needed with some changes?
I already have meltano installed with the postgres extra, not sure if that makes a differenceAndy Carter
11/05/2025, 8:24 AM2025-11-04T09:16:19,088 Error: pg_config executable not found.
2025-11-04T09:16:19,089 pg_config is required to build psycopg2 from source. Please add the directory
2025-11-04T09:16:19,089 containing pg_config to the $PATH or specify the full executable path with the
2025-11-04T09:16:19,089 option:
2025-11-04T09:16:19,089 python setup.py build_ext --pg-config /path/to/pg_config build ...
2025-11-04T09:16:19,089 or with the pg_config option in 'setup.cfg'.Andy Carter
11/05/2025, 8:25 AM2025-11-04T09:16:19,150 pip._internal.exceptions.FailedToPrepareCandidate: Failed to build 'psycopg2' when getting requirements to build wheel
2025-11-04T09:16:19,152 Removed psycopg2<3.0.0,>=2.9.3 from <https://files.pythonhosted.org/packages/89/8d/9d12bc8677c24dad342ec777529bce705b3e785fa05d85122b5502b9ab55/psycopg2-2.9.11.tar.gz> (from tap-redshift==1.0.0b9) from build tracker '/tmp/pip-build-tracker-pbm60hos'
2025-11-04T09:16:19,152 Removed build tracker: '/tmp/pip-build-tracker-pbm60hos'Edgar RamÃrez (Arch.dev)
11/05/2025, 7:04 PMpython: python3.10 to the plugin in meltano.yml?Andy Carter
11/06/2025, 8:59 AM- name: tap-redshift
variant: monad-inc
pip_url: git+<https://github.com/Monad-Inc/tap-redshift.git>
python: python3.10
Same issue I'm afraid, I think I already have py3.10 as my base python.Andy Carter
11/06/2025, 9:46 AMdatadotworld variantAndy Carter
11/06/2025, 10:31 AMsudo apt install postgresql postgresql-contrib libpq-dev python3-dev sorted it for me I thinkAndy Carter
11/06/2025, 12:23 PMEdgar RamÃrez (Arch.dev)
11/06/2025, 6:07 PMpsycopo2 and not psycopg2-binary, so you need the C libs in your system to build the Python wheels from source. Not great!
FWIW I would love to create a ADBC-based taps and targets, but it's hard to find the time to do so 😅. See https://github.com/columnar-tech/adbc-quickstarts/blob/main/python/redshift/main.py.