C2W2 Grades problem

Hello,
I keep getting 0 score on the following:

  • Paginated Featured Playlists Response Output
  • Paginated with Next Featured Playlists

In the submission report, the following tests fail:

  • Test 3 failed: Response output after Exercise 2 should be in JSON format. Please try again.
  • Test 4 failed: Response output after Exercise 3 should be in JSON format. Please try again.

Everything runs well appart from these tests.

Thank you!

Hello @Francisco_Machado,
Could you save ctrl + S the notebook and then upload the files. If you have issues saving that might be the reason. The grader checks the output after exercise 3 for those test cases. Hope it helps

Thanks for the response @Georgios,
I do not have issues saving, my notebook is stored in s3, it was successfully uploaded.

Hello @Francisco_Machado,
I couldn’t reproduce the issue since uploading the notebook after completing Exercise3 got the expected output (pass with 80/100):


responses_with_next[0] should output a json Format (same output like the other two outputs before (releases_response.get('albums').get('items')[0] and responses[0]) . For some reason Test 3 and Test 4 cases will always fail or pass together in this part of the lab. Also one thing I noticed is after I received full marks the grade didn’t update anymore. Hope it helps

Doing the lab up to exercise 3 worked. I got 80/100 as you said. But please bring the issue to your team, it cost me a lot of time.

@Francisco_Machado,
Glad it fixed, could you continue with the other exercises to get full marks. Should work now after you got the correct outputs. Someone had the same issue and will consider it. Thanks

I had the same issue as the OP. I spent about 30 minutes trying to resolve this issue. Feels like the test cases should be more consistent.

Hello @schlenkerc72,
Thanks for bringing this up, after an update, the get_playlists was absolute, and the team did a workaround and used get_new_releases instead. That might the reason that broke the grader and hopefully the team will find a better solution once it is finalized. Thank you

Is this issue resolved?

Hello @mayankj7,
Yes, the team had to make some adjustments in this lab after some functions removed from the Spotify. That affected somehow the grader and a newer version at Coursera might fix it 100%. Thank you

Thank you @Georgios

1 Like

Hi @Georgios

These grader issues are driving me mad… I did the entire lab completely, with all the expected results and behavior. The first time I submitted it the grades were 15%… Only the ‘Paginated Featured Playlists Response Output’ was awarded 15 points…
Today, I did it all again, copying all the code I had written yesterday and executing all cells, getting the same expected results. Now I have all items with 100%, except the ‘Paginated with Next Featured Playlists’… But all those corresponding cells ran fine and the results are there!..
How can I make it grade the 100% it should?

The error for this item is:
→ There was a problem grading your submission. Details:
[Errno 2] No such file or directory: ‘/shared/submission/submission.ipynb’

This was the error I was having yesterday for the ‘Get Featured Response Output’, that today passed. As the one failing today uses the same ‘submission.ipynb’, I find this a very strange bug…

Thanks!

Helli @nmsleal,

Unfortunately this submission issue in the grader happened in other labs to me as well. I reported it but there is a really simple workaround that I used to get full marks.

You could rerun those cells with the ungraded output and try submit again. Fortunately coursera lab saves your progress so you don’t have to copy any code. Now that I think about it those labs that I had the issue was labs I had previously repeated and after I resubmitted I finally got 100%. Hope it helps

Yes, I did re-run all without changing a bit and it got 100%. Finally! I’m having this kind of issues with almost every grader. It costs too much time…

Thanks!

1 Like