I'm having trouble with the grader Programming Assignment: Social Network Database Fix

I’m having trouble with the grader Programming Assignment: Social Network Database Fix, while unit tests are passing, still getting zero grade with below ,
If Anyone faced this similar issue, please help. Thanks
error:

Have you completed the entire notebook before sending it for grading?

Thanks for reply,Yes. I run through entire notebook.
image

Have you by any chance altered code you are not meant to do so? Try to perform a reset of the Lab and resolve it…

1 Like

Have you changed the filename of the notebook?

Note also that the grader uses different test cases than are used in the notebook. So passing the notebook’s tests does not prove your code is perfect.

Sometimes the notebook isn’t saved before submitting, so even though you pass the tests and have a complete solution, you are actually submitting the blank notebook you had at the beginning. Can you try saving it and submitting again?

General guidelines before submitting a notebook:

Use “File → Save and Checkpoint”.
Use “Kernel → Restart and clear output”
Use “Cell → Run All”.

Verify all of the notebook’s tests give the expected results.

Then submit it for grading.

Be extremely careful that you never rename the notebook you intend to submit for grading.

i’m having this same problem , were you able to fix this ?

I did all this, initally i got an error of session not defined failed to complete, then using backup folder i redid the whole thing , then i got this none error

Hi,

I see what might be the problem. When I started the assignment, I added a new cell to your notebook and deleted the original one. However, this means I no longer have a copy of the initial version.

It seems I missed an important step in the assignment. The grader may not be able to find the metadata of the original cell.

Could you please share the original assignment notebook, or let me know where I can find the initial version?

" IMPORTANT NOTE FOR GRADING:

Please submit your work after placing your solutions in the exercises of the assignment and saving the notebook. Don’t delete cells as these include important metadata for grading. Fill out your solutions within the provided spaces (i.e. replacing the None placeholders). You can add new cells but these will be omitted by the grader."

Ok, Found the solution :slight_smile: Thanks for everyone for help and pointers.
image

  • Problem: I missed an important note about grading requirements.
  • What I did:
  • Downloaded the running version of the assignment locally.
  • Rebooted the server, from Lab Help. (screenshot attached for reference)
  • Used the change log to download the first backup copy (the original version).
  • Re-uploaded the original version.
  • Updated the code in the original version without changing any cells.
  • Result: It worked!
  • Hope: This might help others in similar situations.

image

Hi @lucas.coutinho,

I have performed the submit and it passed & saved the runbook but still the valutation flagged it as 0%. I have also tried to restore it locally & update the notebook but still the same error.

Is there a way to resolve that issue, potentially ?
It’s honestly the first time that I have that error and is the last laboratory which I’m struggling so any feedback will be appreciated.

Awaiting for your feedback :slight_smile:

HI @Reyzenello,

Are you getting the same grader error output?

Hi @lucas.coutinho,

Yes, exactly the same error as you can see below:

If you can help me out, how to resolve it. You would save my life :D!

Thanks,
Kind Regards

@Reyzenello

Could you please click in every graded function in the right pannel to open their respective feedback and post a screenshot here?

Hi @lucas.coutinho,

Sure, I hope I can help you out!

Exercise 1:

Exercise 2:

Exercise 3:

Of course, I hided the solution otherwise it would out of policy, I think.

If I made any mistakes on the response, feel free to ping me.

Thanks,
Kind Regards

Hi @lucas.coutinho

Here are the error which may find it interesting to you:

This is the error for each function written:
There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
name ‘session’ is not defined

I have restarted the lab, uploaded the file locally, use the checkpoint, use the back-up one, copied and modified cells but still the same issue.

If you can help me out it would mean the world :slight_smile:

Thanks,

Hi @Reyzenello

Did you delete any cell and/or added the function in another cell? Also, the function load_dataset is returning the objects session, Club, Person, friendships?

Hi @lucas.coutinho,

Thanks for the response.
I fixed the first section and I passed it.

Hello
I also have a problem with submitting the assignment. The evaluator returns it to me as if I did not pass. I tried everything to get the latest version to reboot the system. To start from the beginning with the latest lab. By deleting the assignment and starting from the beginning. And now I I read all the posts from the forum and tried everything but nothing. I’m only glad that when I get stuck, I learn a lot of other things, so I believe that I will definitely visit these forums more often. there is a lot to read and learn from other people’s mistakes. In any case, I need help with this task in order to continue learning. Thanks.