8000 make test-doc failed with error msg "urllib.error.HTTPError: HTTP Error 500: Internal Server Error" · Issue #11330 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

make test-doc failed with error msg "urllib.error.HTTPError: HTTP Error 500: Internal Server Error" #11330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wenhaoz-fengcai opened this issue Jun 20, 2018 · 5 comments

Comments

@wenhaoz-fengcai
Copy link
wenhaoz-fengcai commented Jun 20, 2018

Description

urllib.error.HTTPError: HTTP Error 500: Internal Server Error kept popping up everytime I ran make test-doc. But both make test-code and make test-sphinxext succeeded. The full error msg of running make test-doc is in Actual Results section below.

Steps/Code to Reproduce

make test-doc (from the toplevel source folder)

Expected Results

make test-doc succeeds

Actual Results

===================================================================== FAILURES ======================================================================
________________________________________________________________ [doctest] index.rst ________________________________________________________________
354 data, supported by the PASCAL network <http://www.pascal-network.org>_ .
355
356 The sklearn.datasets package is able to directly download data
357 sets from the repository using the function
358 :func:sklearn.datasets.fetch_mldata.
359
360 For example, to download the MNIST digit recognition database::
361
362 >>> from sklearn.datasets import fetch_mldata
363 >>> mnist = fetch_mldata('MNIST original', data_home=custom_data_home)
UNEXPECTED EXCEPTION: <HTTPError 500: 'Internal Server Error'>
Traceback (most recent call last):

File "/usr/lib64/python3.6/doctest.py", line 1330, in __run
compileflags, 1), test.globs)

File "<doctest index.rst[10]>", line 1, in

File "/home/dgitadmin/Dropbox/Documents/scikit-learn/sklearn/datasets/mldata.py", line 154, in fetch_mldata
mldata_url = urlopen(urlname)

File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)

File "/usr/lib64/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)

File "/usr/lib64/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)

File "/usr/lib64/python3.6/urllib/request.py", line 564, in error
result = self._call_chain(*args)

File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)

File "/usr/lib64/python3.6/urllib/request.py", line 756, in http_error_302
return self.parent.open(new, timeout=req.timeout)

File "/usr/lib64/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)

File "/usr/lib64/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)

File "/usr/lib64/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)

File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)

File "/usr/lib64/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 500: Internal Server Error

/home/dgitadmin/Dropbox/Documents/scikit-learn/doc/datasets/index.rst:363: UnexpectedException
============================================================== short test summary info ==============================================================
SKIP [1] /home/dgitadmin/Dropbox/Documents/scikit-learn/ENV/lib/python3.6/site-packages/_pytest/nose.py:23: Skipping dataset loading doctests
SKIP [1] /home/dgitadmin/Dropbox/Documents/scikit-learn/ENV/lib/python3.6/site-packages/_pytest/nose.py:23: Download RCV1 dataset to run this test.
SKIP [1] /home/dgitadmin/Dropbox/Documents/scikit-learn/ENV/lib/python3.6/site-packages/_pytest/nose.py:23: Skipping compose.rst, pandas not installed
=========================================== 1 failed, 39 passed, 3 skipped, 20 warnings in 39.79 seconds ============================================
make: *** [Makefile:32: test-doc] Error 1

Versions

  • Linux-4.16.15-300.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight
  • Python 3.6.5 (default, Mar 29 2018, 18:20:46)
    [GCC 8.0.1 20180317 (Red Hat 8.0.1-0.19)]
  • NumPy 1.14.5
  • SciPy 1.1.0
  • Scikit-Learn 0.20.dev0
  • Pytest 3.6.2
  • Docutils 0.14
  • Sphinx 1.7.5
@jnothman
Copy link
Member

Which commit of Scikit-learn 0.20dev0? Make sure it's not master from a few days ago where there were known issues (my fault!).

Also, we know mldata has issues and we might deprecate it (#11317).

@wenhaoz-fengcai
Copy link
Author

It's master branch with 22833 commits from June 19, 2018. Let me test it using the master branch with 22838 commits.

@jnothman
Copy link
Member
jnothman commented Jun 21, 2018 via email

@wenhaoz-fengcai
Copy link
Author

c50dc0ec9afd5b90288decb3ddf88802a841a368 is the hash of last commit in my broken master.

@jnothman
Copy link
Member

Yes, the next commit is the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0