mme / vergeml

Machine Learning Environment - alpha version
MIT License
338 stars 14 forks source link

Download issues #7

Open 2er0 opened 5 years ago

2er0 commented 5 years ago

On Fedora system with Python 3.6.8 there is an issue with downloading datasets

$ ml download:cats-and-dogs
Downloading cats and dogs to samples.
Error! Could not download https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip: <urlopen error [Errno -2] Name or service not known>

Quick Fix: adding the following to __init__.py

import os
os.environ['http_proxy']=''
mme commented 5 years ago

Can you check the value of os.environ['http_proxy'] and make sure it is correct?

For example, via curl: https://stackoverflow.com/questions/9445489/performing-http-requests-with-curl-using-proxy