Submitting notebook for grading issues

I have saved manually file, but always get same issue in all blocks:

There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
Traceback (most recent call last):
File “/grader/entry.py”, line 45, in main
learner_mod = compile_module(script, “learner_mod”, verbose=False)
File “/opt/conda/lib/python3.10/site-packages/dlai_grader/compiler.py”, line 35, in compile_module
exec(code, module._dict_)
File “learner_mod.py”, line 32, in
ModuleNotFoundError: No module named ‘networkx’

1 Like

Hi, and welcome to the Forum! This is the AI Discussions area. Please repost this under the correct course instead so the available Mentors can look into your issue. You can select it from the dropdown when creating a new post. Thanks.

1 Like

By any chance did you run !pip install networkx in your active notebook ? I think you need to just delete the cell where you have import networkx. Also, you may need to cleanup any code referencing that library. You may need to use only the libraries that are already pre-installed in the notebook environment.

hi @niktik

@chris.favila mentioned, one needs to choose right category to get help from the course respective mentors.

please add description of assignment name, exercise number and screenshot of the part of the codes that threw this error.

Good luck.

Regards

Dr. Deepti