Missing dlai_tools running notebook after downloading

On the first course in the speciailization, I was able to download the workspace and run the jupyter notebook locally, using the instructions int he lab assignments. That is by clicking on “Lab Files” and then “Download all files”.

But on this course, the first week assignments are all failing with a missing library ‘dlai_tools’.

How can I find this library – is there a way to get these downloaded with my workspace?

Here’s the error I’m seeing on all three assignments:


ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 5
3 import sklearn
4 import sklearn.datasets
----> 5 from public_tests import *
6 from init_utils import sigmoid, relu, compute_loss, forward_propagation, backward_propagation
7 from init_utils import update_parameters, predict, load_dataset, plot_decision_boundary, predict_dec

File /hostfs/Class2/W1A1/public_tests.py:2
1 import numpy as np
----> 2 from dlai_tools.testing_utils import single_test, multiple_test
5 def initialize_parameters_zeros_test(target):
6 layer_dims = [3,2,1]

ModuleNotFoundError: No module named ‘dlai_tools’

If you search the forums for dlai_tools, you’ll find a bunch of threads. Here’s one that seems like the simplest solution, but I have not tried it. Please give it a try and let us know if that helps.

BTW there is no official support for running locally. There are lots of potential problems with versionitis and other things. It’s too complicated for anyone to want to “own” that. So you need to have the IT problem solving skills to “help yourself” in these cases. Here’s a thread with some pointers, though, which will also serve to show how deep the waters are. Here’s one about how to run on Colab.