aws / aws-mwaa-local-runner

This repository provides a command line interface (CLI) utility that replicates an Amazon Managed Workflows for Apache Airflow (MWAA) environment locally.
MIT No Attribution
672 stars 683 forks source link

ModuleNotFoundError: No module named 'cryptography' #350

Open Nymerianne opened 8 months ago

Nymerianne commented 8 months ago

Hi, I encountered this error: ModuleNotFoundError: No module named 'cryptography' while running build-image, at the /generate_key.sh step.

My quick fix was to add the following 2 commands at the beginning of the generate_key.sh script:

pip3 uninstall cryptography
pip3 install cryptography

After this, no error was encountered anymore. It is worth mentioning that this is my requirements.txtfile:

--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt"

kubernetes
apache-airflow[cncf.kubernetes]==2.7.2

And inside the logs, it appeared that it installed cryptography, but the error still came afterwards.

laskmat commented 6 months ago

hey, same issue here. ++

maslick commented 4 months ago

same issue