I am using the Python gnupg to encrypt/decrypt a file, but I got stuck in error message as my question title. I also check folder ~/.gnupg already exist as I have done installed the python-gnupg.
import gnupg
gpg = gnupg.GPG(gnupghome='/home/user/.gnupg')
gpg.encoding = 'utf-8'
.
.
.
Actually code is running in local machine, but on server isn't working. I think that the problem come up with the server configuration with GNUPG or wrong installation. Can you please help me out if you are used to face this issue!