tags 589382 + moreinfo
thanks

* Martin Manns <[email protected]>, 2010-07-17, 10:35:
When using Python 2.6, creating a detached signature file with

ctx.op_sign(plaintext, ciphertext, pygpgme.GPGME_SIG_MODE_DETACH)

raises the following error:

 File "/usr/lib/python2.6/dist-packages/pyme/util.py", line 64, in _funcwrap
   "Invocation of " + name)
 File "/usr/lib/python2.6/dist-packages/pyme/errors.py", line 46, in
errorcheck
   raise GPGMEError(retval, extradata)
pyme.errors.GPGMEError: Invocation of gpgme_op_sign: Unspecified source:
General error (0,1)

Thanks for your bug report. Could you provide a minimal example that triggers this exception? I tried this:

import pyme.core
import pyme.pygpgme
plain = pyme.core.Data('eggs')
cipher = pyme.core.Data()
ctx = pyme.core.Context()
ctx.set_armor(1)
ctx.op_sign(plain, cipher, pyme.pygpgme.GPGME_SIG_MODE_DETACH)
cipher.seek(0, 0)
print cipher.read()

but it works here:

$ python2.5 test-sign.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAABAgAGBQJMQtrVAAoJEDImHrjaOhw0IOsH/1XDd/IKLQ+q5de4hRaen20T
[snip]
-----END PGP SIGNATURE-----

$ python2.6 test-sign.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAABAgAGBQJMQtrXAAoJEDImHrjaOhw0gWwH/2IDOonRpdqW3iES47GbjJZw
[snip]
-----END PGP SIGNATURE-----

--
Jakub Wilk

Attachment: signature.asc
Description: Digital signature

Reply via email to