With the command
% gpg --export --armor --output new.pub B42B1AF5
you are exporting a certificate (public key) already. You probably want to pass the secret key to PGPainless instead, so you need to call
% gpg --export-secret-keys --armor --output new.sec B42B1AF5