Here is the code where the error is shown. I have tried ignoring the error but this line is linked to many others along with the code so the whole file does not run.