The pinentry bug is coincident with updating to or after a new install to 12.11. Prior to that a python3 script running in a Terminal could call os.system(‘gpg —decrypt file’) and a PIN pop-up window would request a Passphrase. Also, no decryption errors are reported, not even when the key needed for decryption is locally missing.
- Bug#1108495: pinentry problem with Debian 12.11 Jeffrey Rhodes
- Bug#1108495: pinentry problem with Debian 12.11 Andreas Metzler

