I have tried a stripped-down example to see if I can get the fast.ai routine untar_data to work…
-
First create a text file with
echo test this > test.txt -
Then tar and gzip it with
tar -zcvf test.tar.gz test.txt -
Copied the file to Google Drive
-
Get shared-link to file from Google Drive
-
Paste this shared link to code from Lesson 1 eg
datapath = ‘https://drive.google.com/open?id=1dZYXssF-w3HWUQAVg6_xQiikO_xzXC-t’
path = untar_data(datapath); path -
Ran this but still get error: OSError: Not a gzipped file (b’<!’)
(Line 1647 of /usr/lib/python3.6/tarfile.py)
I have tried this both from the Ubuntu bash shell on Windows 10 and also from Debian. This makes me wonder if it’s something to do with the google drive url (although it successfully opens the file from a browser)
Any suggestions?