"An internal error occured
exceptions. UnboundLocalError:
local variable 's' referenced before assignment“
Do you carefully check the script specially on the local variable 's' ? Do the path of the results files have an chinese name
or the name of the results files have some stranger letters?
Otherwise may be you should send the file here, or at least the script which made the file here.