[bs4] is a dummy package managed by the developer of Beautiful Soup to prevent name squatting. The official name of PyPI’s Beautiful Soup Python package is beautifulsoup4. This package ensures that if you type pip install bs4 by mistake you will end up with Beautiful Soup.
A problem is also that by default, beautifulsoup is not installed with the lxml parser. To install it, you need to specify the extra_requireslxml.
Otherwise, when running s2p.rpc_utils.kml_roi_process on a KML file, the following error is raised:
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
In
setup.py
, the packagebeautifulsoup
was installed frombs4
, but as you can on https://pypi.org/project/bs4/:A problem is also that by default,
beautifulsoup
is not installed with thelxml
parser. To install it, you need to specify theextra_requires
lxml
.Otherwise, when running
s2p.rpc_utils.kml_roi_process
on a KML file, the following error is raised: