Missing file from week 1 assignment 1

Hey. i am not finding a file called “dlai_tools” in public_tests.py file in week 1 course 2 assignment 1. please help

1 Like

Have you read this (How can I find the source for utility functions invoked by the notebook?)?

1 Like

Yes, i check all the files found in the week and the file “public_tests.py” import “dlai_tools” but the file “dlai_tools” doesn’t exist in the course file list.

1 Like

Hi @Yeabsira_Nigusse ,

Please check the start of public_tests.py should have this line of code:

from dlai_tools.testing_utils import single_test, multiple_test

1 Like

Yes. but dlai_tools file doesn’t exist. i have to find that file and put it in the same folder with public_tests.py file to make the import successful.

1 Like

Hi @Yeabsira_Nigusse ,

If you are running the assignment on you local machine, then this would cause a problem. However, that problem does not exist if you are running the assignment on the Coursera platform. I have just clear all the output and rerun the assignment, and I have no problem.

Also, the tests used are all in the public_tests.py

1 Like

Actually, dlai_tools is a kind of library, I guess. You need to do pip install dlai-tools in a terminal or ! pip install dlai-tools in a Notebook before running that import cell.

1 Like

Yes i was running the code locally. Thanks for your help!

1 Like

Thank you! finally it worked. i thought it is a file.

1 Like