Kleopatra is using pinentry for entering passphrases.
To avoid errors for key-generation, please install one of the following dependencies:

	pinentry-qt (For QT - used by KDE desktops)
	pinentry-gnome (Gnome)
	pinentry-gtk2 (For GTK2 desktops)

You have to set it as as default pinentry, for example:
	echo "pinentry-program /usr/bin/pinentry-qt" > ~/.gnupg/gpg-agent.conf

LogOut and LogIn your user again.
