Bug#589382: python-pyme: error signing files when using Python 2.6

2010-08-01 Thread Jakub Wilk
tags 589382 + patch thanks * Martin Manns , 2010-07-17, 10:35: pyme.errors.GPGMEError: Invocation of gpgme_op_sign: Unspecified source: General error (0,1) The attached patch fixes this bug. -- Jakub Wilk Description: Fix import error with Python >= 2.6. Author: Uldis Ansmits Bug-Debian: http

Bug#589382: python-pyme: error signing files when using Python 2.6

2010-08-01 Thread Jakub Wilk
tags 589382 - moreinfo + confirmed thanks * Martin Manns , 2010-07-19, 20:41: from pyme import core, pygpgme import pyme.errors ciphertext = core.Data() plaintext = core.Data(string="Test") ctx = core.Context() ctx.set_armor(1) def _passphrase_callback(hint='', desc='', prev_bad=''): """Callb

Bug#589382: python-pyme: error signing files when using Python 2.6

2010-07-19 Thread Martin Manns
I missed an import in the callback function. Here is the corrected version of the example: GPG_KEY_UID = "xxx" GPG_KEY_PASSPHRASE = "xxx" from pyme import core, pygpgme import pyme.errors ciphertext = core.Data() plaintext = core.Data(string="Test") ctx = core.Context() ctx.set_armor(1) def _passp

Bug#589382: python-pyme: error signing files when using Python 2.6

2010-07-19 Thread Martin Manns
Here is a minimal example: $ python Python 2.6.5+ (release26-maint, Jul 6 2010, 12:58:20) [GCC 4.4.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> GPG_KEY_UID = "xxx" >>> GPG_KEY_PASSPHRASE = "xxx" >>> from pyme import core, pygpgme >>> import pyme.errors

Bug#589382: python-pyme: error signing files when using Python 2.6

2010-07-18 Thread Jakub Wilk
tags 589382 + moreinfo thanks * Martin Manns , 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 _fu

Bug#589382: python-pyme: error signing files when using Python 2.6

2010-07-17 Thread Martin Manns
Package: python-pyme Version: 0.8.1+clean-3+b1 Severity: important 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 _fu