python-gnupg in debian repos does not work
For some reason, even though the packaged version is the same python-gnupg version 0.3.9-1 in Debian does not work.
python-gnupg in Debian is patched to default to gpg1 since even python-gnupg 0.3.9 gnupg 2.1 support is pretty poor and buggy (package does not build against gpg 2.1 with tests enabled). However, for purposes of these tools gnupg 2.1 support in python-gnugp is OK. So you have 2 choices:
- Install
python-gnupgviapip - Always call (alias) binaries by passing
--gpg-binary gpgargument.
I'm doing the latter.
It's weird, as the only difference should be the keyring used, but I checked both keyrings and the key was present in them both.
Agentless mode should probably work. However, gpg-agent in gpg 2.1 is vastly different and backwards incompatible with gpg1 (as far as I can tell, there is no gpg1 gpg-agent in Debian stretch/sid anymore).
Doh! Just dawned upon me to check gpg --version.