dbt-labs / dbt-postgres

Apache License 2.0
31 stars 12 forks source link

[Bug] "psycopg2" Dependency fails building Docker Images #110

Closed sridharstreaks closed 5 months ago

sridharstreaks commented 5 months ago

Is this a new bug?

Current Behavior

Hi all, Building Docker image fails while installing dbt-postgres in integration with cosmos.

Expected Behavior

astro dev start should be building the Airflow along with DBT Adaptor mentinoed in the Docker file. Refer Here:

Steps To Reproduce

  1. Install Astro CLI
  2. Create a folder and cd into it.
  3. run astro dev init to create an empty airflow project
  4. Add this # install dbt into a virtual environment RUN python -m venv dbt_venv && source dbt_venv/bin/activate && \ pip install --no-cache-dir <your-dbt-adapter> && deactivate in the Docker file
  5. Add astronomer-cosmos in the requirements.txt file
  6. run astro dev start to build the Docker Image and Spin up the Airflow container

Relevant log output

No response

Environment

- OS:Windows
- Python:3.10.9
- dbt-postgres:latest

Additional Context

No response

jtcohen6 commented 5 months ago

Hey @sridharstreaks - I think this is a duplicate of:

Please see this comment for a full explanation and discussion of the potential paths forward: