Skip to content

UnicodeDecodeError #3

@vsajip

Description

@vsajip

Original report by Anonymous.


I get this error with python2 & python3, in ipython and the normal interpreter:

In [1]: import gnupg
In [2]: gpg = gnupg.GPG()
In [3]: gpg.list_keys
Out[3]: <bound method GPG.list_keys of <gnupg.GPG object at 0x279e550>>
In [4]: gpg.list_keys()

UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-4-141890d59f55> in <module>()
----> 1 gpg.list_keys()

/home/philip/.virtualenvs/test2/lib/python2.7/site-packages/gnupg.pyc in list_keys(self, secret)
   1060         self._collect_output(p, result, stdin=p.stdin)
   1061         lines = result.data.decode(self.encoding,
-> 1062                                    self.decode_errors).splitlines()
   1063         valid_keywords = 'pub uid sec fpr sub'.split()
   1064         for line in lines:

/home/philip/.virtualenvs/test2/lib/python2.7/encodings/utf_8.pyc in decode(input, errors)
     14 
     15 def decode(input, errors='strict'):
---> 16     return codecs.utf_8_decode(input, errors, True)
     17 
     18 class IncrementalEncoder(codecs.IncrementalEncoder):

UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 89628: invalid continuation byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcritical

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions