Module requires ruby-gpgme to be installed before Puppet can be run in agent

In a node that does not make use of puppet-yapgp, i get the following after adding puppet-yapgp as a module in the environment:

Error: Could not retrieve local facts: cannot load such file -- gpgme    
Error: Failed to apply catalog: Could not retrieve local facts: cannot load such file -- gpgme

After installing ruby-gpgme, the error disappears.