I have been using Fastai v2, development version, in Google Colab for several months. 2 days ago, I moved to the released version of Fastai V2. I have encountered two problems:
The following statement fails with a 'No module named 'fastai.vision.all" from fastai.vision.all import *
The following statement also fails: ds_source = untar_data(URLs.PASCAL_2007)
/usr/local/lib/python3.6/dist-packages/fastai/datasets.py in untar_data(url, fname, dest, data, force_download, verbose)
233 fname = download_data(url, fname=fname, data=data)
234 if url in _checks:
–> 235 assert _check_file(fname) == _checks[url], f"Downloaded file {fname} does not match checksum expected! Remove that file from {Config().data_archive_path()} and try your code again."
236 if verbose: print(’.tgz file downloaded. Extracting the contents…’)
237 tarfile.open(fname, ‘r:gz’).extractall(dest.parent)
AssertionError: Downloaded file /root/.fastai/data/pascal_2007.tgz does not match checksum expected! Remove that file from /root/.fastai/data and try your code again.
I have waited 48 hours before re-starting the notebook in the hope the folders would flush out. I also tried to fix the problem by renaming the existing folder containing pascal_2007.tgz and creating a new folder, but the problem persists in all cases.
Did you make sure to upgrade the version? Colab comes preinstalled with the old fastai version so just doing pip install fastai won’t do anything. You need a --upgrade along with it