{"action":"created","issue":{"url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/119","labels_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/119/comments","events_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/119/events","html_url":"https://github.com/isislovecruft/python-gnupg/issues/119","id":103823449,"number":119,"title":"windows 8.1 key listing not working","user":{"login":"lancebermudez","id":14024733,"avatar_url":"https://avatars.githubusercontent.com/u/14024733?v=3","gravatar_id":"","url":"https://api.github.com/users/lancebermudez","html_url":"https://github.com/lancebermudez","followers_url":"https://api.github.com/users/lancebermudez/followers","following_url":"https://api.github.com/users/lancebermudez/following{/other_user}","gists_url":"https://api.github.com/users/lancebermudez/gists{/gist_id}","starred_url":"https://api.github.com/users/lancebermudez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lancebermudez/subscriptions","organizations_url":"https://api.github.com/users/lancebermudez/orgs","repos_url":"https://api.github.com/users/lancebermudez/repos","events_url":"https://api.github.com/users/lancebermudez/events{/privacy}","received_events_url":"https://api.github.com/users/lancebermudez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-29T02:34:07Z","updated_at":"2015-09-11T03:48:49Z","closed_at":null,"body":"import gnupg\r\ngpg = gnupg.GPG(binary='gpg.exe',\r\n                homedir='C:/Users/lance/AppData/Roaming/gnupg',\r\n                keyring='pubring.gpg',\r\n                secring='secring.gpg',\r\n                verbose=True)\r\npublic_keys = gpg.list_keys()\r\nprint(public_keys)\r\n\r\nusing python3.4 and python-gnugpg version 2.0.2\r\n\r\nerror i get is\r\nTraceback (most recent call last):\r\n  File \"C:/Users/lance/Pictures/test0.py\", line 14, in <module>\r\n    verbose=True)\r\n  File \"C:\\Python34\\lib\\site-packages\\gnupg\\gnupg.py\", line 162, in __init__\r\n    self.create_trustdb()\r\n  File \"C:\\Python34\\lib\\site-packages\\gnupg\\gnupg.py\", line 172, in create_trustdb\r\n    if self.is_gpg2():\r\n  File \"C:\\Python34\\lib\\site-packages\\gnupg\\gnupg.py\", line 212, in is_gpg2\r\n    return _util._is_gpg2(self.binary_version)\r\n  File \"C:\\Python34\\lib\\site-packages\\gnupg\\_util.py\", line 529, in _is_gpg2\r\n    (major, minor, micro) = _match_version_string(version)\r\n  File \"C:\\Python34\\lib\\site-packages\\gnupg\\_util.py\", line 607, in _match_version_string\r\n    major, minor, micro = int(g[0]), int(g[2]), int(g[4])\r\nTypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'"},"comment":{"url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/comments/139445788","html_url":"https://github.com/isislovecruft/python-gnupg/issues/119#issuecomment-139445788","issue_url":"https://api.github.com/repos/isislovecruft/python-gnupg/issues/119","id":139445788,"user":{"login":"ksfrazier","id":3029079,"avatar_url":"https://avatars.githubusercontent.com/u/3029079?v=3","gravatar_id":"","url":"https://api.github.com/users/ksfrazier","html_url":"https://github.com/ksfrazier","followers_url":"https://api.github.com/users/ksfrazier/followers","following_url":"https://api.github.com/users/ksfrazier/following{/other_user}","gists_url":"https://api.github.com/users/ksfrazier/gists{/gist_id}","starred_url":"https://api.github.com/users/ksfrazier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksfrazier/subscriptions","organizations_url":"https://api.github.com/users/ksfrazier/orgs","repos_url":"https://api.github.com/users/ksfrazier/repos","events_url":"https://api.github.com/users/ksfrazier/events{/privacy}","received_events_url":"https://api.github.com/users/ksfrazier/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T03:48:49Z","updated_at":"2015-09-11T03:48:49Z","body":"changed binary to be \r\nbinary='C:/Progra~1/GNU/GnuPG/pub/gpg.exe'\r\n\r\nthat gets me further... but more problems after that ;-)"}}