For exercise 2, I always got:
Failed test case: Failed execution for club description Fitness Club.
Expected:
Function must run properly,
but got:
Exception thrown: name ‘club_members’ is not defined.
For exercise 2, I always got:
Failed test case: Failed execution for club description Fitness Club.
Expected:
Function must run properly,
but got:
Exception thrown: name ‘club_members’ is not defined.
The function name should be defined as get_club_members() and should return the members of the club! Hopefully, you haven’t changed anything above exercise one, but make sure all previous cells are run though!
I did not change anything. All tests passed. The exception said name ‘club_members’ not found – this is the table name, not the function name.
I got the same problem. Already restarted and clear kernel, reboot server but still got the same error message while passed the unittest
Did you try reseting the lab script from the question mark at the top right corner and then “get latest version”? Can you post a screenshot of the graders error!
Send me your lab code in private, I will have a look at it. In the meantime you try to get the latest version and try your solution on the system again.
Hello @rubina, your assignment name has been changed from the original name i.e. C3M2_Assignment.ipynb. The grade only accepts the original name, try to change it back to its original name and if that doesn’t work you need to “get the latest version”. Thanks.
I didnt change the file name in the Cousera lab. The one that I sent you is the downloaded version that I store in my personal folder.
Ok, after seeing again your lab I think you have an outdated version of your assignment and I keep telling you perform a “Get Latest Version”, thats the only suggestion I have for you now. Once you get a clean copy of the Lab, solve it again. For reference the first exercise in the official notebook is get_club_members(session,club_description) not load_data_from_csv(session, Club, Person, friendships, club_members, csv_path=“members.csv”), there is a load_dataset(path = “./”) function in the official version though.
I did try “Get Latest Version” several times but still got zero for the get_club_members function. I think there is an error in the Coursera server. Anyway, I will try to redo the assignment from scratch. Thank you for the prompt reply.
Delete the current files before you get the latest version, because the file I saw its not the official assignment and let us know how that goes!
I deleted the current file, get the latest version, redo the coding and still got zero for the get_club_members function despite of passing the unittests.
Let me have a final look on your .ipynb lab now! Send it on private.
Kindly find the attached file. Thank you. Regards.
[C3M2_Assignment_2025_02_21_04_11_24.ipynb|attachment]
The problem is here club_members, it is not fed anywhere in the get_club_members function! Also you are supposed to send me lab code on private not on public. See you private messages, try that one…
Hello @lucas.coutinho, please if possible can you have a look at @rubina notebook, I think there is something wrong with their notebook but once we fix something, something else turns up wrong.
Hi! Thank you so much for the follow ups. Indeed, I resent the assignment again this morning my local time, and, yes, something else turns up wrong
Its strange, and I dont have a lot of time to go in depth to it. But should normally work…
Hi @rubina,
Could you please send me your notebook? I can’t download your previous attachment.