It seems that Context.import_() doesn't accept unicode strings and , if I remember correctly, in Python 3 all strings are unicode and after you open the file you get a unicode string as argument for the io.StringIO().
If you want you can use this (it works in Python2):
Hi,
It seems that Context.import_() doesn't accept unicode strings and , if I remember correctly, in Python 3 all strings are unicode and after you open the file you get a unicode string as argument for the io.StringIO().
If you want you can use this (it works in Python2):
from StringIO import StringIO
ctx = gpgme.Context() open("id_ rsa.pub" ).read( ))
strio = StringIO(
ctx.import_(strio)