John77 John77 - 1 month ago 4x
Python Question

Get file from Folder in Python

The issue has been reported here too.

I have code like:

from keras.datasets.data_utils import get_file

path = get_file('babi-tasks-v1-2.tar.gz', origin='')
tar =

When I put the original file location (as the origin above) which is my Downloads folder;


I get the error:

ValueError: unknown url type: /home/xxxxxx/Downloads/tasks_1-20_v1-2.tar.gz

How to resolve the issue as the file location is actually correct?


The error message suggests that your library requires a resource type at the beginning of the URL. Try specifying your path like this: