As the error message says ... there is no "spin" keyword for TransmissionPathways, so remove that.
Your script is probably produced by 2014 or older version, the change was made in 2015, now all spin-related selection is done afterwards, when you plot the results.