Untar_data is not downloading certain datasets and

Untar_data function gives an error “not a gzip file” when trying to download and untar a file.

To Reproduce

untar_data(‘http://data.vision.ee.ethz.ch/cvl/food-101’)

I expect the file to be downloaded and untarred
but i am getting an error saying not a zip file

3 Likes

hey, I am facing the same issue!!How did you resolve it?

Your link is 404.

Though I did run into similar situation, I just use terminal to download and unzip the file.

I found I had to leave off the ‘.tgz’ extension from the URL from the fast.ai data set download links.

1 Like

I am also facing error on using untar_data function, it says gaierror. I am using kaggle for executing the code of lesson 1 (2019). Can someone help?

I tried to download the same dataset, but I believe the path you want is

https://data.vision.ee.ethz.ch/cvl/food-101.tar.gz

Unfortunately it looks like they’ve closed permission to download the file (maybe too many downloads?). Luckily the same dataset has been uploaded to kaggle, and you can download it directly from there.