farid
02/24/2023, 4:14 PMmeltano add orchestrator airflow
Added orchestrator 'airflow' to your Meltano project
Variant: apache (default)
Repository: <https://github.com/apache/airflow>
Documentation: <https://hub.meltano.com/orchestrators/airflow--apache>
Added required file bundle 'files-airflow' to your Meltano project
Variant: meltano (default)
Repository: <https://github.com/meltano/files-airflow>
Documentation: <https://hub.meltano.com/files/files-airflow--meltano>
Installing orchestrator 'airflow'...
Installing file bundle 'files-airflow'...
Orchestrator 'airflow' could not be installed: failed to install plugin 'airflow'.
ERROR: 404 Client Error: Not Found for url: <https://raw.githubusercontent.com/apache/airflow/constraints-2.1.2/constraints-3.10.txt>
Installed file bundle 'files-airflow'
2023-02-24T16:06:17.827878Z [info ] Adding 'files-airflow' files to project...
2023-02-24T16:06:17.828888Z [info ] Created orchestrate/dags/meltano.py
Installed 1/2 plugins
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Failed to install plugin(s)
I have python 3.10 and manage a fix with this workaround and seems all is working but not sure if this is a correct way or if there is a better way to fix
cd .meltano/orchestrators/airflow
source venv/bin/activate
AIRFLOW_VERSION=2.5.1
PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
CONSTRAINT_URL="<https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt>"
pip install "apache-airflow[async,postgres,google]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
thanksvisch
02/24/2023, 4:40 PMvisch
02/24/2023, 4:41 PMfarid
02/24/2023, 4:47 PMvisch
02/24/2023, 4:47 PMfarid
02/24/2023, 4:49 PM