I'm on a M1 mac and use a VDI for windows. I created a conda environment in each (arcgis-env) and used pip install arcgis. I also only have access to ArcGIS Online, not Pro.
When I run the following in Jupyter Notebooks Visual Studio Code:
import arcgis
from arcgis.gis import GIS
gis = GIS()
map = gis.map()
map.basemap = "streets"
map
I get this error in both os:
TypeError Traceback (most recent call last)
Cell In[1], line 4
1 import arcgis
2 from arcgis.gis import GIS
----> 4 gis = GIS()
5 map = gis.map()
6 map.basemap = "streets"
File /opt/homebrew/Caskroom/miniforge/base/envs/arcgis-env/lib/python3.9/site-packages/arcgis/gis/__init__.py:586, in GIS.__init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs)
580 raise RuntimeError(
581 "An untrusted SSL error occurred when attempting to connect to the provided GIS.\n"
582 "If you trust this server and want to proceed, add 'verify_cert=False' as an "
583 "argument when connecting to the GIS."
584 )
585 else:
--> 586 raise e
587 try:
588 if (
589 url.lower().find("arcgis.com") > -1
590 and self._portal.is_logged_in
591 and self._portal.con._auth.lower() == "oauth"
592 ):
File /opt/homebrew/Caskroom/miniforge/base/envs/arcgis-env/lib/python3.9/site-packages/arcgis/gis/__init__.py:525, in GIS.__init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs)
...
541 )
542 self._session.mount("http://", a)
543 self._session.mount("https://", a)
TypeError: __init__() got an unexpected keyword argument 'method_whitelist'What can I do to fix this? For the VDI, should I also do pip install arcgispro?