Problem: Grading error due to a file path inconsistency. The Exercise 4 instructions state that main.py is located in the src/ folder:
“Save your changes to the file src/main.py.”
And indeed, my file is at ~/project/src/main.py. However, when grading, the system looks for the file in a different path and cannot find it:
There was a problem loading the Python file 'main.py'. Details:
[Errno 2] No such file or directory: '/shared/submission/main.py'
Copiar
This error prevents the grader from evaluating the file, which lowers the lab score even though the code works correctly. The code runs correctly in the terminal (all authors were processed and the JSON file was generated), so the issue is a configuration problem with the grader, not with my solution.I kindly request that you review the file search path or adjust the grade manually. Thank you.
Hello @Rosa3 , thank you for reaching out and sharing the details of this issue.
I completely understand how frustrating it is.
I tried solving the lab myself by working on the notebook C2_W2_Assignment.ipynb first in the same file, then working on endpoint.py, and finally main.py in that exact order.
After opening the terminal and running
cd src
python main.py
the output successfully generated and saved the data to the JSON file.
To make sure the automated system can read your working files without any trouble and get your full grade smoothly and safely, follow these simple steps:
1 - Open your terminal or file explorer inside the lab environment.
2- Locate your working file inside the src folder.
3- Make a copy of that main.py file.
4- Paste the copied file directly into the main root directory right outside the src folder.
5- Click the submit or grade button again so the system can find the file immediately and score your lab successfully.
Please let me know if you need any more help and keep up the great work.
Hello, I am still getting the same error after following the suggested steps. I already copied main.py to the root of the project and verified that the code for Exercise 4 is complete (I reviewed the main.py file in the Exercise 4 section) and it runs correctly in the terminal (it generates the author_items_2026-10-03T19:13:54Z.json file without errors). However, the grader still shows:
There was a problem loading the Python file 'main.py'. Details:
[Errno 2] No such file or directory: '/shared/submission/main.py'
Then I ran ls /shared/submission/ 2>/dev/null || echo "no existe /shared/submission" in the terminal, and the output indicates that the folder does not exist in my environment(no existe /shared/submission). The grader is looking for the file in a path that is not available in my virtual machine.
Lab ID: jqqdhxpfvmlk
This appears to be a configuration issue with the lab, not with my solution. Please review the grader’s file path or adjust my grade manually. Thank you.