-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't sign (at all) #122
Comments
I'm wondering if the version distributed is just too old. When running the same exact sequence as listed on this projects readme: #!/usr/bin/env python3
import gnupg
gpg = gnupg.GPG(binary='/usr/bin/gpg',
homedir='./keys',
keyring='pubring.gpg',
secring='secring.gpg')
batch_key_input = gpg.gen_key_input(
key_type='RSA',
key_length=4096)
print(batch_key_input)
key = gpg.gen_key(batch_key_input)
print(key.fingerprint) I get the following:
i'll try from git. |
and from git (at least in virtualenv) gives the same. |
I think this is related to gpg2, I'm seeing similar issues. It looks like is the same than #137 |
@Bts368 Thanks for reporting this! @meskio Yes, I think this is solved by doing what @dmarsic did in #137 (i.e. putting I'll guess I'll add a handler for |
@Bts368 Also, the reason this is happening in your case is that you've configured a pinentry program, and you didn't supply a |
This should be fixed in 2.2.0, which also includes the fix for #137. |
yields:
Using python 3.4.3.
I get the same when using Python 2.7.10:
Using python-gnupg ver. 2.0.2 on 3.4.3 and 2.0.1 on 2.7.10, via Arch's AUR (you can view the packaging process here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-gnupg-isis and https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python2-gnupg-isis, for python 3 and python 2 respectively).
The text was updated successfully, but these errors were encountered: