From ec919fd7ca16e75365f1fcd340b99e3925d4f909 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 25 Aug 2014 16:19:33 +0200 Subject: [PATCH] ER: clarify import error message of BeautifulSoup (read_html) --- pandas/io/html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/io/html.py b/pandas/io/html.py index 1fe86201a8db0..44dcfb6117d72 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -645,9 +645,9 @@ def _parser_dispatch(flavor): if flavor in ('bs4', 'html5lib'): if not _HAS_HTML5LIB: - raise ImportError("html5lib not found please install it") + raise ImportError("html5lib not found, please install it") if not _HAS_BS4: - raise ImportError("bs4 not found please install it") + raise ImportError("BeautifulSoup4 (bs4) not found, please install it") if bs4.__version__ == LooseVersion('4.2.0'): raise ValueError("You're using a version" " of BeautifulSoup4 (4.2.0) that has been" @@ -658,7 +658,7 @@ def _parser_dispatch(flavor): " and later releases will work.") else: if not _HAS_LXML: - raise ImportError("lxml not found please install it") + raise ImportError("lxml not found, please install it") return _valid_parsers[flavor]