ERROR: _gpgme_io_set_close_notify: error: Invalid argument

mbo mbodbg at
Fri Feb 11 13:46:05 CET 2011

Hello Bernhard,

thanks for the hint, but  gpgme_check_version() is called inside pygpgme ( If I call the script directly, it runs without any problem. The problem only occurs when I start the script from freeswitch/mod_python which implements the python C API. Environment variables and lld outputs are the same on both systems. In my opinion it looks like a threading issue, but I can't find any differences to the other system where everything works.

Best Regards


Am 11.02.2011 um 12:13 schrieb Bernhard Reiter:

> Am Dienstag, 8. Februar 2011 14:55:20 schrieb mbo:
>> we are accesing  gpgme in a python script for decrypting emails. To
>> reproduce the error we are facing, we are using the following python
>> script:
>> import gpgme
>> ctx=gpgme.Context()
>> ctx.get_key(’B9F2747A’)
>> pygpgme-0.1+bzr20090820
> You know that gpgme_check_version() necessary for initialisation according to 
> gpgme 1.1.6 docs. You could check if pygpgme does this.
> (pyme, the other python package did not. You could try it.)
> To find out about the differences, you could try to save all environment 
> variables in the two runs and compare them. Also compare all packages and 
> maybe ldd outputs.
> Looks like a question for the pygpgme people, also.
> -- 
> Managing Director - Owner:       (Free Software Company)
> Deputy Coordinator Germany: Board member:
> Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
> Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

More information about the Gnupg-devel mailing list