When trying to do gpg (version 1) keygen on archlinux I get the following errors after details (other than passphrase) have been entered:
You need a Passphrase to protect your secret key.
pinentry: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
gpg-agent[5853]: can't connect to the PIN entry module: End of file
gpg-agent[5853]: command get_passphrase failed: No pinentry
gpg: problem with the agent: No pinentry
gpg: Key generation canceled.
I have pinentry installed on the system. It also fails when using gpg2.