On line #32 change the word error to error1 and on line #37 change the word error to error2.
Then run your script and see if it says error1 or error2.
If it is error1 then you do not have a stat file in the /proc/ directory. Run a locate command to find where it is, or ask support.
If it is error2 then you are not opening that file. Remove the

in line 14 and run your script and see what the message is. Post it here or ask support.