Hi,
I got zero score for all exercises despite that the unit tests passed. The error message is :
There was a problem compiling the code from your notebook. Details:
expected ‘:’ (, line 227)
Could I get some help? Thanks!
Hi,
I got zero score for all exercises despite that the unit tests passed. The error message is :
There was a problem compiling the code from your notebook. Details:
expected ‘:’ (, line 227)
Could I get some help? Thanks!
I’m not a mentor for this course, but here are a few fundamentals:
Hello @Yan_Du
This course had been recently updated, so make sure the assignment you did is the updated one. Can you share a screenshot of your grader output to know if you are using the latest/updated version of assignment?
Also tagging a NLP mentor @arvyzukai for updated assignment specific help.
Regards
DP
Hi @TMosh ,
Thanks for the reply! But I did not re-name the notebook, and I did not download the notebook.
Hi @arvyzukai ,
Could you take a look at the following grader error:
I really don’t know why the error is there while the unit tests passed.
Thanks!
You are doing an updated assignment.
Sharing a response of @arvyzukai to a similar kind of thread. Please see his below response
Your line # don’t match but probably one of your code is not as per the autograder requirements, so make sure if you have followed the codes as per updated assignment instructions.
If you’re not able to get the issue, kindly wait for arvy’s response, he will surely respond.
Regards
DP
Passing the tests in the notebook does not mean your code is perfect.
It also doesn’t mean your version of the notebook matches what the grader expects.
It also doesn’t identify whether your notebook’s metadata is proper.
Thanks for the reply!
May I ask how to check the version of the notebook to make sure that it is what the grader expects?
Also, may I ask how to check the notebook’s metadata is proper?
Thanks!
The easy way is send your notebook to a mentor for the course, so they can check it for you.
I’m not a mentor for that course, and I don’t have access to their repo. So I can’t do anything to help with this.
The next-best option is to rename your notebook (by changing the file name), then use the “Help → Get latest version” tool to get a new copy.
Then you can download both your original and the new notebook ipynb files to your computer. Then you can use a file comparison tool to check the contents of the two files.
You have to review the differences in detail, because some differences will be expected (the new noteook won’t have any of the “output” cell data, for example).
Hi @TMosh ,
Thanks for the reply!!
I tried to use the latest version as you suggested, but still got the same error after submitting the assignment.
Hi everyone,
I just solved the problem based on this reply: C3W2_Compile error during grading - #4 by Fabian_Geissmann
Thanks for the help!