Skip to content
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

Please, suppress the XMLParsedAsHTMLWarning #268

Open
Lukas-Vasionis opened this issue Aug 7, 2024 · 0 comments
Open

Please, suppress the XMLParsedAsHTMLWarning #268

Lukas-Vasionis opened this issue Aug 7, 2024 · 0 comments

Comments

@Lukas-Vasionis
Copy link

When executing bioservises.KEGG().parse_kgml_pathway() a bs4 warning comes out. Could you please suppress it or resolve it?

[miniconda3/lib/python3.12/site-packages/bioservices/xmltools.py:95](http://localhost:8888/lab/tree/jp/miniconda3/lib/python3.12/site-packages/bioservices/xmltools.py#line=94): XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor. self._soup = bs4.BeautifulSoup(self.data, "lxml")

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

1 participant