Generate key for myself, and then try to encrypt a file:
> gpg --gen-key> gpg --encrypt --recipient me01 file.txt gpg: me01: skipped: No public key
listing key can find me01:
> gpg --list-key // pub key for me01 shown
checked GPG2 Encryption - No public key errordifferent issue.