I am using MWAA. I have included pysftp in mwaa requirements.txt file as
pysftp==0.2.9
In the scheduler log groups of MWAA I can even see that it is getting downloaded.
Collecting pysftp==0.2.9
Downloading pysftp-0.2.9.tar.gz (25 kB)
but when I am trying to import it in my dags, I am getting the following error
Broken DAG: [/usr/local/airflow/dags/hello.py] Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/airflow/dags/hello.py", line 2, in <module>
import pysftp
ModuleNotFoundError: No module named 'pysftp'
What might be causing this issue and what can be done to solve it?