<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS API Conda Environment SSL Issues in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1297762#M8764</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;When I run the following in Jupyter Notebooks Visual Studio Code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
from arcgis.gis import GIS

gis = GIS()
map = gis.map()
map.basemap = "streets"
map&lt;/LI-CODE&gt;&lt;P&gt;I get this error in both os:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;TypeError                                 Traceback (most recent call last)
Cell In[1], line 4
      1 import arcgis
      2 from arcgis.gis import GIS
----&amp;gt; 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:
--&amp;gt; 586         raise e
    587 try:
    588     if (
    589         url.lower().find("arcgis.com") &amp;gt; -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'&lt;/LI-CODE&gt;&lt;P&gt;What can I do to fix this? For the VDI, should I also do pip install arcgispro?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 21:39:47 GMT</pubDate>
    <dc:creator>blueautumn</dc:creator>
    <dc:date>2023-06-09T21:39:47Z</dc:date>
    <item>
      <title>ArcGIS API Conda Environment SSL Issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1297762#M8764</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;When I run the following in Jupyter Notebooks Visual Studio Code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
from arcgis.gis import GIS

gis = GIS()
map = gis.map()
map.basemap = "streets"
map&lt;/LI-CODE&gt;&lt;P&gt;I get this error in both os:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;TypeError                                 Traceback (most recent call last)
Cell In[1], line 4
      1 import arcgis
      2 from arcgis.gis import GIS
----&amp;gt; 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:
--&amp;gt; 586         raise e
    587 try:
    588     if (
    589         url.lower().find("arcgis.com") &amp;gt; -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'&lt;/LI-CODE&gt;&lt;P&gt;What can I do to fix this? For the VDI, should I also do pip install arcgispro?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 21:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1297762#M8764</guid>
      <dc:creator>blueautumn</dc:creator>
      <dc:date>2023-06-09T21:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API Conda Environment SSL Issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1297863#M8766</link>
      <description>&lt;P&gt;Did you go through the recommended installation documents?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/anaconda" target="_blank"&gt;Package managers | ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 06:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1297863#M8766</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-06-11T06:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API Conda Environment SSL Issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1298173#M8770</link>
      <description>&lt;P&gt;So for the VDI, it turns out there were problems with downloading all the packages and I just had to wait it out and remake the environment etc. However, I'm still facing issues with my M1 MacBook. The "&lt;SPAN&gt;conda install -c esri arcgis" gives me the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - arcgis

Current channels:

  - https://conda.anaconda.org/esri/osx-arm64
  - https://conda.anaconda.org/esri/noarch
  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also get the same SSL error when I run the code in the original post within VS Code using the Jupyter Extension.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 16:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1298173#M8770</guid>
      <dc:creator>blueautumn</dc:creator>
      <dc:date>2023-06-12T16:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API Conda Environment SSL Issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1298360#M8771</link>
      <description>&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step by Step on macOS: A GIS Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/understanding-conda/" target="_blank"&gt;Understanding Conda | ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or check&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api" target="_blank"&gt;Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for related "Issues" on their github site&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 22:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1298360#M8771</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-06-12T22:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API Conda Environment SSL Issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1300487#M8805</link>
      <description>&lt;P&gt;So it turns out that the package managers recommended for macs did not even have arcgis, including the official Anaconda one (at least for M1 Arm). The pipenv method never worked on either, I'm assuming because it's installing/not installing so many things compared to conda. My VDI also ended up getting blocked by the company's firewall. So, I'm jus going to go between using Docker and Parallels for Desktop. Thanks for your help! Let me know if I got it wrong somewhere.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 05:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-conda-environment-ssl-issues/m-p/1300487#M8805</guid>
      <dc:creator>blueautumn</dc:creator>
      <dc:date>2023-06-17T05:23:24Z</dc:date>
    </item>
  </channel>
</rss>

