import gnupgfrom pathlib import Pathgpg = gnupg.GPG(gnupghome = Path("/Users/mucki/Cert/"))
You will see that the error occurs in the Python standard library - in the standard library subprocess module. I don't think you can pass in path instances. I don't believe your problem is related to python-gnupg. Try a test case with just subprocess and see how you get on. Ask for help on the python-list mailing list.
Just convert it (the Path instance) to a string before passing it in.