Get file from Folder in Python
<p>The issue has been reported <a href="https://github.com/fchollet/keras/issues/2369" rel="nofollow">here</a> too.</p>

<p>I have code like:</p>

<pre><code>from keras.datasets.data_utils import get_file

path = get_file('babi-tasks-v1-2.tar.gz', origin='http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz')
tar = tarfile.open(path)
</code></pre>

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

<pre><code>/home/xxxxxx/Downloads/tasks_1-20_v1-2.tar.gz
</code></pre>

<p>I get the error:</p>

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

<p>How to resolve the issue as the file location is actually correct?</p>

<p>Your function <em>get_file</em> seems to take an <strong>url address as a argument</strong> and not an absolute path.</p>

<p>Could you give us more details about this function ?</p>

python url error-handling anaconda