ModuleNotFoundError: No module named 'cryptography'
Nymerianne opened this issue · comments
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.txt
file:
--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.
hey, same issue here. ++