Trigger Word Detection Assignment Grader Error


I did the assignment like with all test passed for 5 times and I get this error on my grader output and get 0/100 every time: “Cell #20. Can’t compile the student’s code. Error: TypeError(”‘NoneType’ object cannot be interpreted as an integer")".

I tried deleting all the files and restoring them, updating the lab, rebooting and resetting output. How can I pass this assignment, it is very frustrating.

Thanks in advance.

The “NoneType” error typically means you haven’t completed the entire assignment yet. Some of the “None” statements are still in the notebook, which you have not replaced with valid code.

You cannot submit an incomplete notebook. It makes the grader crash.

Hi, I did actually complete it but it just deletes everything I wrote after cell #20. I did it 5 times and the result was the same on each trial.

The grader is not going to delete anything from your notebook. It doesn’t have that ability.

Sorry, I put it in a confusing way. What I meant was that after I finish and submit my assignments, I would get the aforementioned error and cells including and after #20 would reset to their original states.

I am getting an error message which is slightly different :“Cell #24. Can’t compile the student’s code. Error: FileNotFoundError(2, ‘No such file or directory’)” – Could you please suggest a way out to resolve this issue here?

It means there is a file missing from your notebook folder that the grader wants to use.
Often this happens if you 1) add your own dataset to the notebook, but the grader doesn’t have access to it. 2) or you have mangled your folder contents. In that case you have to save your work (by renaming your notebook) and then delete all the files and re-install the assignment using the “Help” button.

fixed it for me, thanks