aws-tools icon indicating copy to clipboard operation
aws-tools copied to clipboard

python-gnupg in debian repos does not work

Open vegardx opened this issue 8 years ago • 4 comments

For some reason, even though the packaged version is the same python-gnupg version 0.3.9-1 in Debian does not work.

vegardx avatar Dec 07 '16 05:12 vegardx

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:

  1. Install python-gnupg via pip
  2. Always call (alias) binaries by passing --gpg-binary gpg argument.

I'm doing the latter.

modax avatar Dec 07 '16 07:12 modax

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.

vegardx avatar Dec 07 '16 08:12 vegardx

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).

modax avatar Dec 07 '16 09:12 modax

Doh! Just dawned upon me to check gpg --version.

vegardx avatar Dec 07 '16 09:12 vegardx