You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "./test.py", line 2, in <module>
print(GPG(homedir='~/.gnupg').list_sigs())
File "/home/heartsucker/code/heartsucker/python-gpg-spider/venv/lib/python3.4/site-packages/gnupg/gnupg.py", line 525, in list_sigs
self._parse_keys(result)
File "/home/heartsucker/code/heartsucker/python-gpg-spider/venv/lib/python3.4/site-packages/gnupg/gnupg.py", line 543, in _parse_keys
getattr(result, keyword)(L)
File "/home/heartsucker/code/heartsucker/python-gpg-spider/venv/lib/python3.4/site-packages/gnupg/_parsers.py", line 1023, in sig
self.curkey['sigs'][self.curuid].append(sig)
KeyError: 'Canary <[email protected]>'
This output is the same for listing signatures for all keys or listing signatures for one key. The output is the same for both gpg and gpg2 binaries.
(venv) heartsucker@pythagoras:~/code/heartsucker/python-gpg-spider/gpg_spider$ python --version
Python 3.4.2
(venv) heartsucker@pythagoras:~/code/heartsucker/python-gpg-spider/gpg_spider$ pip freeze
gnupg==2.0.2
psutil==4.3.0
(venv) heartsucker@pythagoras:~/code/heartsucker/python-gpg-spider/gpg_spider$ uname -a
Linux pythagoras 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
heartsucker@pythagoras:~/code/heartsucker/python-gpg-spider/gpg_spider$ gpg --version
gpg (GnuPG) 1.4.18
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
heartsucker@pythagoras:~/code/heartsucker/python-gpg-spider/gpg_spider$ gpg2 --version
gpg (GnuPG) 2.0.26
libgcrypt 1.6.3
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA, RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
The text was updated successfully, but these errors were encountered:
In the event someone gets to this before I solve it all the way, the problem is the ListKeys object is not having the uid field called which resets the self.curuid. This causes the KeyError on a subsequent call to sig.
Possibly related to #142.
Python:
Output:
This output is the same for listing signatures for all keys or listing signatures for one key. The output is the same for both
gpg
andgpg2
binaries.Output from matching
gpg
commands:My env:
The text was updated successfully, but these errors were encountered: