Having issues getting the latest Python gnupg to create a key











up vote
0
down vote

favorite












For some background I am running this on A debian linux (kali)
I am running python-gnupg vs 2.3.1
The version of gpg I have is: gpg (GnuPG) 2.2.10



import gnupg
gpg = gnupg.GPG(homedir='doctests')

input_data = gpg.gen_key_input(key_type="RSA", key_length=1024,name_email="tom@fake.net")
key = gpg.gen_key(input_data)


I receive: the following error:



Exception in thread Thread-2:
Traceback (most recent call last):
File "/Users/thomasz/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/Users/thomasbekman/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_meta.py", line 650, in _read_response
result._handle_status(keyword, value)
File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_parsers.py", line 995, in _handle_status
raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: 'ERROR'



Any thoughts on how I can fix this?



For some reason running this version of gnupg: '0.4.1.dev0' fixes it. But I'd like to use the most recent iteration if possible.










share|improve this question


























    up vote
    0
    down vote

    favorite












    For some background I am running this on A debian linux (kali)
    I am running python-gnupg vs 2.3.1
    The version of gpg I have is: gpg (GnuPG) 2.2.10



    import gnupg
    gpg = gnupg.GPG(homedir='doctests')

    input_data = gpg.gen_key_input(key_type="RSA", key_length=1024,name_email="tom@fake.net")
    key = gpg.gen_key(input_data)


    I receive: the following error:



    Exception in thread Thread-2:
    Traceback (most recent call last):
    File "/Users/thomasz/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
    File "/Users/thomasbekman/anaconda3/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
    File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_meta.py", line 650, in _read_response
    result._handle_status(keyword, value)
    File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_parsers.py", line 995, in _handle_status
    raise ValueError("Unknown status message: %r" % key)
    ValueError: Unknown status message: 'ERROR'



    Any thoughts on how I can fix this?



    For some reason running this version of gnupg: '0.4.1.dev0' fixes it. But I'd like to use the most recent iteration if possible.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      For some background I am running this on A debian linux (kali)
      I am running python-gnupg vs 2.3.1
      The version of gpg I have is: gpg (GnuPG) 2.2.10



      import gnupg
      gpg = gnupg.GPG(homedir='doctests')

      input_data = gpg.gen_key_input(key_type="RSA", key_length=1024,name_email="tom@fake.net")
      key = gpg.gen_key(input_data)


      I receive: the following error:



      Exception in thread Thread-2:
      Traceback (most recent call last):
      File "/Users/thomasz/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
      self.run()
      File "/Users/thomasbekman/anaconda3/lib/python3.6/threading.py", line 864, in run
      self._target(*self._args, **self._kwargs)
      File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_meta.py", line 650, in _read_response
      result._handle_status(keyword, value)
      File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_parsers.py", line 995, in _handle_status
      raise ValueError("Unknown status message: %r" % key)
      ValueError: Unknown status message: 'ERROR'



      Any thoughts on how I can fix this?



      For some reason running this version of gnupg: '0.4.1.dev0' fixes it. But I'd like to use the most recent iteration if possible.










      share|improve this question













      For some background I am running this on A debian linux (kali)
      I am running python-gnupg vs 2.3.1
      The version of gpg I have is: gpg (GnuPG) 2.2.10



      import gnupg
      gpg = gnupg.GPG(homedir='doctests')

      input_data = gpg.gen_key_input(key_type="RSA", key_length=1024,name_email="tom@fake.net")
      key = gpg.gen_key(input_data)


      I receive: the following error:



      Exception in thread Thread-2:
      Traceback (most recent call last):
      File "/Users/thomasz/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
      self.run()
      File "/Users/thomasbekman/anaconda3/lib/python3.6/threading.py", line 864, in run
      self._target(*self._args, **self._kwargs)
      File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_meta.py", line 650, in _read_response
      result._handle_status(keyword, value)
      File "/Users/thomasz/anaconda3/lib/python3.6/site-packages/gnupg/_parsers.py", line 995, in _handle_status
      raise ValueError("Unknown status message: %r" % key)
      ValueError: Unknown status message: 'ERROR'



      Any thoughts on how I can fix this?



      For some reason running this version of gnupg: '0.4.1.dev0' fixes it. But I'd like to use the most recent iteration if possible.







      gnupg pgp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 at 0:22









      Thomas

      61




      61





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53254580%2fhaving-issues-getting-the-latest-python-gnupg-to-create-a-key%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53254580%2fhaving-issues-getting-the-latest-python-gnupg-to-create-a-key%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine