{"action":"opened","issue":{"url":"https://api.github.com/repos/LeoIannacone/goopg/issues/27","repository_url":"https://api.github.com/repos/LeoIannacone/goopg","labels_url":"https://api.github.com/repos/LeoIannacone/goopg/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/LeoIannacone/goopg/issues/27/comments","events_url":"https://api.github.com/repos/LeoIannacone/goopg/issues/27/events","html_url":"https://github.com/LeoIannacone/goopg/issues/27","id":180301743,"number":27,"title":"Debian unstable","user":{"login":"davesteele","id":565205,"avatar_url":"https://avatars.githubusercontent.com/u/565205?v=3","gravatar_id":"","url":"https://api.github.com/users/davesteele","html_url":"https://github.com/davesteele","followers_url":"https://api.github.com/users/davesteele/followers","following_url":"https://api.github.com/users/davesteele/following{/other_user}","gists_url":"https://api.github.com/users/davesteele/gists{/gist_id}","starred_url":"https://api.github.com/users/davesteele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davesteele/subscriptions","organizations_url":"https://api.github.com/users/davesteele/orgs","repos_url":"https://api.github.com/users/davesteele/repos","events_url":"https://api.github.com/users/davesteele/events{/privacy}","received_events_url":"https://api.github.com/users/davesteele/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T13:18:41Z","updated_at":"2016-09-30T13:18:41Z","closed_at":null,"body":"I am unable to get the extension to work in Debian Sid, using either Chrome or Chromium. The log says that 'gpg-agent is not available in this session', but it is running, and is available from other contexts.\r\n\r\nNote that Sid is undergoing a transition from gpg1 to gpg2. '/usr/bin/gpg' doesn't currently exist. It appears that goopg explicitly calls gpg2, which is available.\r\n\r\nI was able to get the extension to work on Lubuntu 16.04, using Chrome 53.0.2785.116-1 and a throwaway key.\r\n\r\n===============================\r\n\r\n$ dpkg --list | grep gnupg\r\nii  gnupg-agent                            2.1.11-7                             amd64        GNU privacy guard - cryptographic agent\r\nii  gnupg1                                 1.4.21-1                             amd64        GNU privacy guard - a free PGP replacement (\"classic\" version)\r\nii  gnupg1-curl                            1.4.21-1                             amd64        GNU privacy guard - a free PGP replacement (cURL helpers for \"classic\" version)\r\nii  gnupg1-l10n                            1.4.21-1                             all          GNU privacy guard \"classic\" - localization files\r\nii  gnupg2                                 2.1.11-7                             amd64        GNU privacy guard - a free PGP replacement (new v2.x)\r\nii  python-gnupg                           0.3.8-3                              all          Python wrapper for the GNU Privacy Guard (Python 2.x)\r\n\r\n$ dpkg --list  | grep chrom\r\nii  chromium                               53.0.2785.113-1                      amd64        web browser\r\nii  google-chrome-stable                   53.0.2785.116-1                      amd64        The web browser from Google\r\nii  goopg-chrome                           0.3.1                                all          GPG for Gmail - Chrome browser plugin\r\nii  goopg-chromium                         0.3.1                                all          GPG for Gmail - Chromium browser plugin\r\nii  libchromaprint1:amd64                  1:1.3.2-dmo1                         amd64        Audio fingerprint library\r\nii  xserver-xorg-video-openchrome          1:0.3.3+git20160310-1                amd64        X.Org X server -- VIA display driver\r\n\r\n======================================================\r\nlog:\r\n\r\n2016-09-29 19:05:48,552:INFO:Gmail:getting message 15775dc532f299b6\r\n2016-09-29 19:05:50,019:DEBUG:Gmail:message id 15775dc532f299b6\r\nMIME-Version: 1.0^M\r\nReceived: by 10.31.162.1 with HTTP; Thu, 29 Sep 2016 05:12:36 -0700 (PDT)^M\r\nTo: Dave Steele <dsteele@gmail.com>^M\r\nDate: Thu, 29 Sep 2016 08:12:36 -0400^M\r\nMessage-ID: <CAOHcdNZUOgQyOdt0iZq0xn9P6eQqyP98BYsVtMV2-Yw=uRgGug@mail.gmail.com>^M\r\nSubject: test^M\r\nFrom: David Steele <steele@debian.org>^M\r\nContent-Type: text/plain; charset=UTF-8^M\r\n^M\r\ntest^M\r\n\r\n2016-09-29 19:05:50,020:DEBUG:gnupg:sign_file: <_io.BytesIO object at 0x7f63eab33b90>\r\n2016-09-29 19:05:50,020:DEBUG:gnupg:['gpg1', '--status-fd', '2', '--no-tty', '--use-agent', '-sa', '--detach-sign']\r\n2016-09-29 19:05:50,026:DEBUG:gnupg:data copier: <Thread(Thread-15, initial daemon)>, <_io.BytesIO object at 0x7f63eab33b90>, <open file '<fdopen>', mode 'wb' at 0x7f63ec60ded0>\r\n2016-09-29 19:05:50,026:DEBUG:gnupg:sending chunk (115): 'Content-Type: text/plain; charset=\"utf-8\"\\r\\nMIME-Version: 1.0\\r\\nContent-Transfer-Encoding: quoted-printable\\r\\n\\r\\ntest\\r\\n'\r\n2016-09-29 19:05:50,027:DEBUG:gnupg:stderr reader: <Thread(Thread-16, initial daemon)>\r\n2016-09-29 19:05:50,027:DEBUG:gnupg:closed output, 115 bytes sent\r\n2016-09-29 19:05:50,028:DEBUG:gnupg:stdout reader: <Thread(Thread-17, initial daemon)>\r\n2016-09-29 19:05:50,035:DEBUG:gnupg:[GNUPG:] USERID_HINT 627EBB290A817A82 David Steele <steele@debian.org>\r\n2016-09-29 19:05:50,036:DEBUG:gnupg:[GNUPG:] NEED_PASSPHRASE 627EBB290A817A82 8A3171EF366150CE 1 0\r\n2016-09-29 19:05:50,037:DEBUG:gnupg:gpg: gpg-agent is not available in this session\r\n2016-09-29 19:05:50,037:DEBUG:gnupg:gpg: Sorry, no terminal at all requested - can't get input\r\n2016-09-29 19:05:50,037:ERROR:GPGMail:signature Content-Type: text/plain; charset=\"utf-8\"^M\r\nMIME-Version: 1.0^M\r\nContent-Transfer-Encoding: quoted-printable^M\r\n^M\r\ntest^M\r\n\r\n2016-09-29 19:05:50,038:ERROR:CommandHandler:Invalid signature hash_algo None\r\nTraceback (most recent call last):\r\n  File \"/usr/share/goopg/commandhandler.py\", line 88, in sign\r\n    new_message = self.gpgmail.sign(draft)\r\n  File \"/usr/share/goopg/gpgmail.py\", line 171, in sign\r\n    micalg = \"pgp-{}\".format(self._get_digest_algo(signature).lower())\r\n  File \"/usr/share/goopg/gpgmail.py\", line 135, in _get_digest_algo\r\n    raise TypeError(\"Invalid signature hash_algo {}\".format(hash_algo))\r\nTypeError: Invalid signature hash_algo None\r\n\r\n====================================\r\n\r\n$ gpg2 --list-secret-keys 8A3171EF366150CE\r\nsec   rsa4096/366150CE 2010-08-15 [SC]\r\nuid         [ unknown] David Steele <steele@debian.org>\r\nuid         [ unknown] David Steele <daves@users.sourceforge.net>\r\nuid         [ unknown] David Steele <dsteele@gmail.com>\r\nssb   rsa4096/0D929394 2010-08-15 [E]\r\nssb   rsa4096/0A817A82 2014-08-15 [S] [expires: 2019-08-14]"}}
{"actor":{"display_login":"davesteele"}}