If the GAFF dat file is located somewhere with spaces in the path, as is common on Windows, the parmchk2 command from template_generators.py does not work. Adding quotes around the file path didn't help, but I found it could be fixed by copying the GAFF dat file to the temporary directory and passing that to parmchk2 instead.