Esri / arcgis-python-api

Documentation and samples for ArcGIS API for Python
https://developers.arcgis.com/python/
Apache License 2.0
1.89k stars 1.1k forks source link

arcgispro-py3 missing bs4 by default #1010

Closed cdflint closed 3 years ago

cdflint commented 3 years ago

The default arcgispro-py3 environment in ArcGIS Pro v2.8.0 is missing bs4 as required by arcgis\gis_impl_con\connection.py in _oauth_token(self)

Steps to reproduce the behavior: Clone or use default arcgispro-py3 environment.

Attempt to connect to GIS enterprise portal or AGOL with locally stored credentials or similar means to trigger _oauth_token method.

error: image

Expected behavior authenticated access to GIS enterprise portal or AGOL with provided credentials.

Platform (please complete the following information):

Additional context Interim measure install bs4==4.9.3 in cloned environment, however any further cloned env's will require this mitigation to ensure proper connectivity to GIS portal's or AGOL. Without using administrator privilege's and editing the arcigspro-py3 env this cannot be done at the default environment and another authentication method should be used.

AtmaMani commented 3 years ago

@cdflint thanks for reporting. While you have the correct workaround, we will find if beautifulsoup can be added to the default env. We may have to work out the licensing aspects of including it in our software.

AtmaMani commented 3 years ago

I looked at the earlier conversations around this topic and we made a decision to remove it from the list of core dependencies since it is only required for oAuth interactive sign in workflows and also because it can be a big package. We are looking at an alternate solution for this workflow in the next version. So I will close this for now.

AtmaMani commented 3 years ago

Xref https://github.com/ArcGIS/geosaurus/issues/1105 and https://github.com/ArcGIS/geosaurus/pull/1394

77377 commented 1 year ago

Hi! The decision to leave out bs4 from the standard environment is as pity. Webscraping is a common workflow to get Data into a GIS portal, and the lack of support for BeautifulSoup means that skripts and skript tools developed for AGOL or ArcGIS Pro using Beautifulsoup can't be published or used on a portal, or at least not without major pains. :(((