You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "EsauOlivaLeaoHelix (via GitHub)" <gi...@apache.org> on 2024/02/02 17:18:23 UTC

[I] Airflow 2.7.2 constrain file use redshift-connector==2.7.2 that causes dependency issues with dbt-redshift package (any) [airflow]

EsauOlivaLeaoHelix opened a new issue, #37148:
URL: https://github.com/apache/airflow/issues/37148

   ### Apache Airflow Provider(s)
   
   dbt-cloud
   
   ### Versions of Apache Airflow Providers
   
   --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt
   
   redshift-connector==2.014
   dbt-redshift==1.7.2
   dbt-postgress==1.7.7
   
   
   ### Apache Airflow version
   
   2.7.2
   
   ### Operating System
   
   MACOS
   
   ### Deployment
   
   Amazon (AWS) MWAA
   
   ### Deployment details
   
   Mwaa 2.7.2 version
   
   ### What happened
   
   ## Current Behavior
   The constrain file from 2.7.2 is hard pined to redshift-connector==2.014.  and that connector is related to: [https://github.com/dbt-labs/dbt-redshift/pull/601#issuecomment-1718442908](url)
   
   A concrete example of this is Airflow 2.7.2 which uses the following default constraints:
   https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt
   
   You'll note the version of redshift-connector is 2.0.914 but this package jumped from 2.0.913 directly to 2.0.915, so it is essentially uninstallable by default in Airflow
   
   
   ### What you think should happen instead
   
   ## Expected/Previous Behavior
   pip install with constraint should still have a valid installation candidate
   
   ### How to reproduce
   
   ## Steps To Reproduce
   pip install dbt-redshift --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt 
   
   
   ### Anything else
   
   ## Relevant log output
   
   `ERROR: Cannot install -r /usr/local/airflow/requirements/requirements.txt  because these package versions have conflicting dependencies.`
   
   The conflict is caused by:
       dbt-redshift 1.7.2 depends on redshift-connector!=2.0.914, <=2.0.918 and >=2.0.913
       The user requested (constraint) redshift-connector==2.0.914
   
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow 2.7.2 constrain file use redshift-connector==2.7.2 that causes dependency issues with dbt-redshift package (any) [airflow]

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis closed issue #37148: Airflow  2.7.2 constrain file use redshift-connector==2.7.2 that causes dependency issues with dbt-redshift package (any)
URL: https://github.com/apache/airflow/issues/37148


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow 2.7.2 constrain file use redshift-connector==2.7.2 that causes dependency issues with dbt-redshift package (any) [airflow]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #37148:
URL: https://github.com/apache/airflow/issues/37148#issuecomment-1924323932

   Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow 2.7.2 constrain file use redshift-connector==2.7.2 that causes dependency issues with dbt-redshift package (any) [airflow]

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on issue #37148:
URL: https://github.com/apache/airflow/issues/37148#issuecomment-1924411710

   **Solution**: Please Install first airflow and it dependencies and after that install upgrade all third party packages
   **Solution with explanation**: Please follow the recommendation [Installation from PyPI: Upgrading and installing dependencies (including providers)](https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#upgrading-and-installing-dependencies-including-providers)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org