pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.79k stars 17.97k forks source link

python3.2: test_html ImportError: html5lib not found please install it #4275

Closed yarikoptic closed 11 years ago

yarikoptic commented 11 years ago

Now (d070a1f) that #4265 fixed, all the test_html tests fail similarly

======================================================================
ERROR: test_bad_url_protocol (pandas.io.tests.test_html.TestReadHtmlBase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/tests/test_html.py", line 290, in test_bad_url_protocol
    '.*Water.*')
  File "/usr/lib/python3.2/unittest/case.py", line 557, in assertRaises
    callableObj(*args, **kwargs)
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/tests/test_html.py", line 91, in run_read_html
    return read_html(*args, **kwargs)
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/html.py", line 906, in read_html
    attrs)
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/html.py", line 765, in _parse
    parser = _parser_dispatch(flav)
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/html.py", line 719, in _parser_dispatch
    raise ImportError("html5lib not found please install it")
ImportError: html5lib not found please install it
yarikoptic commented 11 years ago

and 1 more which probably belongs here as well

======================================================================
ERROR: pandas.io.tests.test_html.test_bs4_finds_tables
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/tests/test_html.py", line 479, in test_bs4_finds_tables
    assert get_elements_from_url(filepath, 'table')
  File "/home/yoh/deb/gits/pkg-exppsy/build-area/pandas-0.12.0~rc1+git101-gd070a1f/debian/tmp/usr/lib/python3/dist-packages/pandas/io/tests/test_html.py", line 470, in get_elements_from_url
    soup = BeautifulSoup(f, features='html5lib')
  File "/usr/lib/python3/dist-packages/bs4/__init__.py", line 155, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?