fetch_lfw_people time out
See original GitHub issueDescription
Example under the Face Recognition fails, because datasets/fetch_lfw_people
timesout. In fact the resource home is down. I think scimitar examples should not rely on data being stored somewhere else, and should be self-sustained. Otherwise, if some other website goes down, changes domain, or changes the data path, the examples will be broken.
Steps/Code to Reproduce
from sklearn.datasets import fetch_lfw_people
data = fetch_lfw_people()
Actual Results
No handlers could be found for logger "sklearn.datasets.lfw"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/datasets/lfw.py", line 304, in fetch_lfw_people
download_if_missing=download_if_missing)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/datasets/lfw.py", line 93, in check_fetch_lfw
urllib.urlretrieve(url, target_filepath)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
fp = self.open(url, data)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
return getattr(self, name)(url)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 350, in open_http
h.endheaders(data)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1038, in endheaders
self._send_output(message_body)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 882, in _send_output
self.send(msg)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 844, in send
self.connect()
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 821, in connect
self.timeout, self.source_address)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 575, in create_connection
raise err
IOError: [Errno socket error] [Errno 60] Operation timed out
Versions
>>> import platform; print(platform.platform())
Darwin-16.6.0-x86_64-i386-64bit
>>> import sys; print("Python", sys.version)
('Python', '2.7.13 (default, Dec 18 2016, 07:03:39) \n[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]')
>>> import numpy; print("NumPy", numpy.__version__)
('NumPy', '1.13.0')
>>> import scipy; print("SciPy", scipy.__version__)
('SciPy', '0.19.1')
>>> import sklearn; print("Scikit-Learn", sklearn.__version__)
('Scikit-Learn', '0.18.2')
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
python 3.x - Load fetch_lfw_people using Proxy - Stack Overflow
But when I try to load it using builtin sklearn loader I got the error. from sklearn import datasets lfw_people = datasets.fetch_lfw_people( ...
Read more >sklearn.datasets.fetch_lfw_people
Each row is a face image corresponding to one of the 5749 people in the dataset. Changing the slice_ or resize parameters will...
Read more >Face Recognition: Starter {Trick} Code with OUTPUT - Kaggle
Solution: I created a folder named '../LFW/lfw_people'. And, set it as the path. So, the next time my fetching function will access and...
Read more >LFW Dataset: Basic Usage and a Quick Tutorial - Datagen
Learn about the Labeled Faces in the Wild (LFW) dataset, how to use it in your projects, and see how to build a...
Read more >The normal person's guide to having fun at London Fashion ...
Support Time Out directly today and help us champion the people and places which make the city tick. Cheers! Donate now. Latest news....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is back online now
Closing as a duplicate