GPG key generation - timeout on OSX due to lack of entropy
Perhaps you could just rm -rf ~/.gnupg. It works for my situation. I just force stopped the first time I ran gpg --gen-key, which might lead me to this agent_genkey failed: Timeout error.