C3M2_Assignment SocialNetwork Database

Hi,

I have passed all the unit tests but when I submitted the the assignment. There is an error

There was an error grading your submission. Details:
[Errno 2] No such file or directory: ‘…/members.csv’

u

Could anyone please tell me what the issue is.

regards,

Johan

Check your assignment and see if you’re using “members.csv” as a hard-coded file name in a scope where it may not exist.

Runtime errors that make the grader crash will throw the same error message for all functions - so it isn’t necessarily in the get_club_members() function.

1 Like

Yes, it was hardcoded

load_data_from_csv(session, Club, Person, friendships, club_members, “members.csv”)

so how to solve this issue?

When you ask the LLM to produce code for you, feed in the skeleton of the function definition as provided in coursera in the prompt, and even if the LLM changes it in its code writter for you(it did for me), rearrange it in the way it is defined in the Lab in coursera. The unittests expect that definition!

Is the “Team Software Engineering with AI” tag in this thread incorrect? Because I thought that was Course 2, but the thread title refers to Course 3.

Thanks for the information. I have updated the tag to AI-Powered Software and System Design (Part 3 of the Specialization)

1 Like

your suggestion is much appreciated.

Thanks Johan for starting the thread, even I am facing the same issue with grading. Completed all the parts and struck with this assignment submission.
Really appreciate help.

What kind of issues are you still facing?


Above is the issue I am facing. In C3M2_Assignment.ipynb all the test results are coming as " All tests passed!". Not sure how to solve the issue shown in the screenshot

I am facing issue in grading. It is giving an error I am not able to proceed

This is regarding training (grading)

  1. AI-Powered Software and System Design
  2. Module 2
  3. Social Network Database

I have completed the assignment and all the tests are coming as pass in the lab, when i submit the assignments it is giving below error even though the file present int the folder.

There was an error grading your submission. Details:

[Errno 2] No such file or directory: ‘…/members.csv’

Hello,

To solve the problem, simply make sure, one function in one cell. Hope this helps

regards,

Johan

2 Likes

issue was solved. Once again, thanks for your guidance

Hi,

After the generated code, make sure that each function is in a cell. Do not have two functions in one cell. This will solve the issue.

regards,

Johan

@Johan_Iskandar , @gent.spah

I am little new to Python coding. In my code all the functions are independent cells already. Still getting the same error.

In the notebook all unit tests are coming passed! Problem is with grading. @gent.spah - Please help in resolving this grading issue

Looks like something is changed. Now it is giving different error.

for ease of communication you can add https://www.linkedin.com/in/jiskandar1/

Hi @ramanarp ,
If you have left the notebook idle for awhile, you need to rerun all the code cells.
From the top of notebook menu bar, click:
kernel → restart & clear all output
cell → run all
Make sure no error is reported, then save your notebook before submitting the assignment for grading.

Hi All,

Thank you all for your support.

I got a response from Support team that there was an issue and it got resolved. I have resubmitted now and my course is completed.

1 Like


I write function to return result as output expect but when run unitest, I still get error.
Can you explain this issue? Thank so much