Python-gnupg on MWAA decryption failed: No secret key, encryption works

We are trying to encrypt and decrypt files using gnupg 2.3.7 on a MWAA instance. the encryption of the file using a key imported on the instance using python-gnupg is succesful but the decryption of the encrypted file using the same key in the same execution fails with the exception as below

[GNUPG:] NO_SECKEY A48F41138F6BED50
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - gpg: public key decryption failed: No secret key
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - [GNUPG:] ERROR pkdecrypt_failed 33554449
[2024-06-27, 13:37:04 EDT] {{gnupg.py:651}} WARNING - potential problem: ERROR: pkdecrypt_failed 33554449
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - [GNUPG:] BEGIN_DECRYPTION
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - [GNUPG:] DECRYPTION_FAILED
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - gpg: decryption failed: No secret key

As per the log below are the keys

 DEBUG - line: 'pub:-:2048:1:2A344B0397330148:1719496320:::-:::scESC::::::23::0:'
[2024-06-27, 13:37:04 EDT] {{gnupg.py:1363}} DEBUG - line: 'fpr:::::::::DA9DDE1F2A81FA999C1C6F6A2A344B0397330148:'
[2024-06-27, 13:37:04 EDT] {{gnupg.py:1363}} DEBUG - line: 'uid:-::::1719496320::602823FADB1E8931465BA524C17A90057139C0A3
[2024-06-27, 13:37:04 EDT] {{gnupg.py:1363}} DEBUG - line: 'sub:-:2048:1:A48F41138F6BED50:1719496320::::::e::::::23:'
[2024-06-27, 13:37:04 EDT] {{gnupg.py:1363}} DEBUG - line: 'fpr:::::::::84013DE12A36F9F4D00E19B8A48F41138F6BED50:'

and the decryption is considering a key that exists but still prompts the error

[GNUPG:] ENC_TO A48F41138F6BED50 1 0
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - [GNUPG:] KEY_CONSIDERED DA9DDE1F2A81FA999C1C6F6A2A344B0397330148 0
[2024-06-27, 13:37:04 EDT] {{gnupg.py:981}} DEBUG - gpg: encrypted with rsa2048 key, ID A48F41138F6BED50, created 2024-06-27

Is that Amazons “Managed Workflows for Apache Airflow”?

Which operating system, what version of python-gnupg are you using and how did you import the keys and encrypt the file in Python?