-
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
decrypt does not work with gpg 2.1.9 without '--pinentry-mode loopback' #137
Comments
@dmarsic Yes. Thanks for reporting this! I'll add it now. |
@dmarsic This should be fixed in python-gnupg version 2.2.0. If not, please feel free to reopen! |
I'm quite new to python-gnupg, but it seems to me that I'm having this issue with 2.2.0.
On fedora:24 docker image from docker hub.
Output:
|
I'm having the same issue with 2.2.0 on OSX 10.12.2 while decrypting:
|
to the above commenters, I ran into similar problems and I would confirm the following (since these comments are from early 2017 you probably solved already ha, but this comment is for the sake of the person googling this error message):
|
Using Ubuntu 18.04.5 and gpg 2.2.4, using screen, this same issue still seems to happen, and the above fixes the problem. The question is, why is this error still happening? |
In my tests, the "stanard" https://stackoverflow.com/a/72355824/605356 Also, I find the following bash_alias/command "clears" cached passwords from the
|
Decrypt (
decrypt()
) does not work for me unless passphrase has been previously passed to gpg2.I'm using:
python-gnupg version 2.0.2
gpg (GnuPG) 2.1.9
My use case is relatively simple:
If I trace it with strace, I see "Inappropriate ioctl for device " message.
I was able to make it work by:
gpg-agent
to run withallow-loopback-pinentry
, and--pinentry-mode loopback
as an additional parameter to gnupg. I added it underGPGBase._make_args()
and tested that decryption works.Can
--pinentry-mode loopback
be added to gnupg?The text was updated successfully, but these errors were encountered: