C3W2 zero score for all exerciese

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!

1 Like

I’m not a mentor for this course, but here are a few fundamentals:

  • Have you re-named your notebook file? The grader only uses the original file name.
  • Did you download the notebook and work on it using some other platform (such as Colab or VSCode), then upload it back to Coursera Labs for grading? This will mangle the notebook’s metadata that the grader uses.
1 Like

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

1 Like

Hi @Deepti_Prasad ,

Thanks for the reply! Below is a screenshot from the grader:

1 Like

Hi @TMosh ,

Thanks for the reply! But I did not re-name the notebook, and I did not download the notebook.

1 Like

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!

1 Like

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

1 Like

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.

1 Like

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!

1 Like

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).

1 Like

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.

1 Like

Hi everyone,

I just solved the problem based on this reply: C3W2_Compile error during grading - #4 by Fabian_Geissmann

Thanks for the help!

1 Like