Lesson 2 2019 cant download images on the server

I am seeing this error,struggling with this for last 2 days, i have tried every given “solution” on the forum, git, medium can’t seem to move past this error. Plz help

FileNotFoundError Traceback (most recent call last)

in () ----> 1 download_images(path/file, dest, max_pics=200)

/usr/local/lib/python3.6/dist-packages/fastai/vision/data.py in download_images(urls, dest, max_pics, max_workers, timeout) 192 def download_images(urls:Union[Path, str], dest:PathOrStr, max_pics:int=1000, max_workers:int=8, timeout=4): 193 “Download images listed in text file urls to path dest, at most max_pics" --> 194 urls = list(filter(None, open(urls).read().strip().split(”\n")))[:max_pics] 195 dest = Path(dest) 196 dest.mkdir(exist_ok=True)

FileNotFoundError: [Errno 2] No such file or directory: ‘data/bears/urls_black.txt’

Hi Dhruv,

What setup are you running your python notebook on? You should check if ‘path’ is a valid file path. I am trying on google colab and i had to change path variable to “/content/data” to make it work.

2 Likes

its still not working can you elaborate or maybe post a screenshot or something bro if possible.plz

Try running %pwd in your notebook and find out current working directory. See attached image for more details.

thanks bro, sorry for the late reply, i got it. thanks