I’m not a mentor for that course, but notice that the error messages from the grader are pretty clear compile errors, meaning the code looks incomplete (instances of “None” that should have been replaced) and it could not possibly have passed the internal tests. So one theory would be that hitting “Submit” does not do an automatic “Save”. Meaning that maybe the grader is seeing an older version of the code than what you are looking at.
It’s an easy experiment to try “Save” first and then submit again.
Sorry, as I mentioned, I am not actually familiar with this course. So we’ll have to hope that someone with more knowledge will see this and can offer more course specific advice.
As all your tests are passing, you must be loading the data correctly. However, it looks like there is a statement in your code, that is assigning a function to a variable where the function does not return anything (If a function does not return a value, it would return None). That line is probably not needed. I recently had similar issue in my code, and hence thought of that. It might not relevant to your case.
Hello, I checked your code somewhat; it’s not exactly as the official solution that I have, especially for the load_data_from_csv(session, Club, Person, friendships, club_members, csv_path=“members.csv”), there are steps missing there. May I suggest you refeed the entire skeleton and function description to the LLM and ask it to produce relevant code according to the description of the function (in red here) and its definition.
Perhaps before you do that, you might need to get the latest version of the lab again, you see, sometimes the comments within the function are also used by the grader!