The grader is returning errors even when all the tests are successfully passed

AI-Powered Software and System Design

Module 2**

Programming Assignment: Social Network Database

The grader is returning errors even when all the tests are successfully passed.

Load data from csv
There was an error grading your submission. Details:
‘NoneType’ object has no attribute ‘_name_’

other 3 questions
There was an error grading your submission. Details:
module ‘learner_mod’ has no attribute ‘load_data_from_csv’

Lab Id vekjjdlhrbhi

Lab was restarted several times; I am using the last version of google chrome.

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.

1 Like

Hi Paulin
I tried saving, closing, restarting and re do the lab.

Nothing worked.

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.

Try renaming the current assignment version and from the question mark at the top right corner, “Get Latest Version” then solve again the new version!

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.

I followed all the recommendations, but the issue continues. All the tests are passed but the grader is returning errrors.

There was an error grading your submission. Details:
‘NoneType’ object has no attribute ‘_name_’

There was an error grading your submission. Details:
module ‘learner_mod’ has no attribute ‘load_data_from_csv’

There must be something wrong with your submission file, did you get a new fresh copy of the assignment with “Get Latest Version”?

I did, yes, many times

Did you rename or delete your original file first, before you used “Get latest version”?

I did a backup and removed mine before “Get latest version“
Also I tried rename it and “Get latest version“

Any of this worked, I am still getting the issue.

Once you get the latest version, then what do you do?

  • Do you complete the assignment by starting over,
  • or are you trying to re-use your old file?

I tried completing the assignment by starting over and over again.

OK. At this point we need to find a mentor or staff member for that course, and get help from them.

I have messaged Lucas, who is listed as the staff person for this course.

1 Like

You can also send me a copy of your solution in private. I will have a look at it if I can find any issues!

1 Like

Hi
I sent you the file.

Thanks.

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!