Untar_data is giving a TypeError: unhashable type: ‘dict’. Untar was errorless when I was working a few days ago. Any ideas on how to resolve this?
Code:
from fastai.vision.all import *
path = untar_data(URLs.PETS)
Here is the error:
TypeError Traceback (most recent call last)
in
1 from fastai.vision.all import *
----> 2 path = untar_data(URLs.PETS)
/opt/conda/envs/fastai/lib/python3.8/site-packages/fastai/data/external.py in untar_data(url, archive, data, c_key, force_download)
121 def untar_data(url, archive=None, data=None, c_key=‘data’, force_download=False):#, extract_func=file_extract, timeout=4):
122 "Download url
to fname
if dest
doesn’t exist, and extract to folder dest
"
→ 123 d = FastDownload(fastai_cfg(), module=fastai.data, archive=archive, data=data, base=’~/.fastai’)
124 return d.get(url, force=force_download, extract_key=c_key)
/opt/conda/envs/fastai/lib/python3.8/site-packages/fastai/data/external.py in fastai_cfg()
13 def fastai_cfg():
14 "Config
object for fastai’s config.ini
"
—> 15 return Config(Path(os.getenv(‘FASTAI_HOME’, ‘~/.fastai’)), ‘config.ini’, create=dict(
16 data = ‘data’, archive = ‘archive’, storage = ‘tmp’, model = ‘models’))
17
TypeError: unhashable type: 'dict’