gpg: signing failed: No pinentry

The command

brew install pinentry

Aparrently installed the pinentry into different path, than the gpg-agent.conf file has. If someone runs into this problem, just do

which pinentry-mac

And the path it gives you, put into gpg-agent.conf file.

If there is no gpg-agent.conf file found in ~/.gnupg/ directory, then create it.

touch ~/.gnupg/gpg-agent.conf

Very Important

Run gpgconf --kill gpg-agent after change the conf file. Thanks to Jérémie Boulay