I have done save all - restart kernel then run all cells and pass the test but it still fail at grading
Saved before submitting but fail at the grading process. Details: No module named 'unittests'
Generally, “there was a problem compiling the code from your notebook” means that the grader is looking for some information (either text in the notebook or some hidden metadata) which is missing.
Sometimes it is a metadata tag that tells the grader which cells it should run.
This can happen if you delete, add, or rename things from the notebook that the grader did not expect you to modify.
Hi! Are you trying to import the module unittests in some graded cell?
Hi All,
I have renamed unittests during the testing, how do I fix the meta data and grading it properly?
Thanks
Xavier
You may have to throw away your current work and start over with a fresh copy.
Maybe Lucas has better advice.
How can I get the fresh copy? The backup data doesn’t have unittests module.
Open the notebook.
Use File->Open. Verify whether you see a unittests.py file.
Please post back a screen capture image.
Hi All
I deleted all files then updated the lab, and redo everything from scratch. Problem solved.
It is a metadata issue
Thanks and appreciate your help
Xavier