I don’t know to fix it, help me plz.
having the same problem
I use azure search and I want to download url then this error occurs.
got the same error just running the official fastbook chapter 2 colab…
try
from fastai.data.all import *
at the the top of your notebook.
thx but still not working
Consider using an alternate image scraper (jmd_imagescraper
). It uses Duck Duck Go to search (which in turn relies on Bing I believe). Only will need to replace a few lines in the notebook. Detailed description here:
I ran into the same problem. It seems that in the latest fastai package version 2.5.0 the method download_url()
has been entirely removed (it used to live in fastai.data.external
). When you run the Gradient server for example and update the packages as the instructions say you pull this new version.
The method is available in the version just before, 2.4.1. If you open a terminal in your notebook server and run pip install --upgrade fastai==2.4.1
it will give you the previous version and this method will work.
If possible, would be great for someone to update the docs so that users install a version of fastai that is compatible with the fastbook course notebooks cc @jeremy
@kilgoretrout It works! Thank you so much.
Looks like download_url exists in fastdownload.
from fastdownload import download_url
worked for me.
This solved my problem perfectly. Thank you.
Sometime downlod link are not working.
Sometime downlod link are not working.
download_url ( )
MyLowesLife
The code might have been updated. Use the latest version of the notebook. Or instead use:
from duckduckgo_search import ddg_images
ims = ddg_images(‘grizzly bear’)
But this gets the dictionary with keys dict_keys([‘title’, ‘image’, ‘thumbnail’, ‘url’, ‘height’, ‘width’, ‘source’])
So, to get images:
ims = L(ddg_images(‘grizzly bear’)).itemgot(‘image’)
Now, you can use the rest of the code in the Python book as it is.