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.
Regards,
Vinay Sajip