Installing GDAL in MWAA

0

Hi all, I am trying to install GDAL in MWAA.

library link - https://pypi.org/project/GDAL/

I have already tried it through requirements.txt file.

Content of requirements.txt -

--constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.2.2/constraints-3.7.txt
apache-airflow-providers-ssh==2.3.0
GDAL==3.5.1

But getting some errors - error file link - https://github.com/aws/aws-mwaa-local-runner/files/9478133/error_log.txt

As I can see in the pypi.org it depends on the following - dependencies

looking forward to any solutions in this

Thanks, SKC

SKC
已提問 2 年前檢視次數 248 次
1 個回答
0

The GDAL package is not within scope of what Airflow was intended to do, so the package is not suggested to be installed. Airflow is meant for orchestration, ETL/Geo-spatial libraries require computation and resources that are simply not available on the worker containers.

With that, there are various reasons that it could be failing, including dependency conflicts with other core packages used by Airflow. If you review the constraints line you are using in your PIP installation, you can see that the package is not listed at all, and on libraries.io, it also doesn't list its dependencies which makes troubleshooting it even harder.

It could also be that according to the GDAL website, there is currently only a working binary for Debian based Linux distros, and MWAA containers utilize Amazon Linux (which is a RedHat variant).

AWS
Andrew
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南