hkp4py hkp|hkps bindings for python.

Ben McGinnes ben at
Sat Sep 22 22:00:07 CEST 2018

I replied off list, mostly due to which filter I was reading and
hitting "r" instead of "L", but the long story short version of that
reply was that ...

On Fri, Sep 21, 2018 at 12:55:54AM +0200, Marcel Fest wrote:
> Testing your example results in the following issue.
> File "/usr/lib/python3.7/site-packages/gpg/", line 128, in *getattr*
> func = getattr(gpgme, name)
> AttributeError: module 'gpg.gpgme' has no attribute 'gpgme_key_import'
> This was the main reason why I used |op_import| in the first place
> Why is this happening?

This is caused by this:

> I am using the latest bindings on ArchLinux from September this year.

Not that it's Arch's fault, it's not.  It's that the key_import
function was added after GPGME 1.11.1 was released.  The same is true
of the three export methods added around the same time.

Whereas I'm using the latest version in the master branch almost all
the time (for obvious reasons).  Anyway, the key_import, key_export,
key_export_minimal and key_export_secret functions will be available
to all when GPGME 1.12.0 is released very soon.  With the additional
key_blob response you added, I'll be able to include some more
detailed examples in the HOWTO for that release.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <>

More information about the Gnupg-devel mailing list