<?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 Call to arcgis.GIS in Python script window causes ArcGIS Pro to full crash with error report in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/call-to-arcgis-gis-in-python-script-window-causes/m-p/1153704#M7226</link>
    <description>&lt;P&gt;When i run the following script in the python window in ArcGIS Pro, ArcGIS Pro crashes.&lt;/P&gt;&lt;PRE&gt;import arcpy, arcgis, numpy, os&lt;BR /&gt;arcpy.env.overwriteOutput=True&lt;BR /&gt;&lt;BR /&gt;proxyHost = "http://some.proxy.some-company.de"&lt;BR /&gt;proxyPort = "80"&lt;BR /&gt;&lt;BR /&gt;#Portal connection&lt;BR /&gt;cloudUrl = "https://www.some-company.de/arcgis"&lt;BR /&gt;cloudUser = "contentcreator"&lt;BR /&gt;cloudPwd = "somepassword"&lt;BR /&gt;cloudPortal = arcgis.GIS(url=cloudUrl, username=cloudUser, password=cloudPwd, proxy_host=proxyHost, proxy_port=proxyPort)&lt;/PRE&gt;&lt;P&gt;ArcGIS Pro crashes on the last line of my code.&lt;/P&gt;&lt;P&gt;The portal i like to call is a local installed ArcGIS Enterprise instance with Portal for ArcGIS (version 10.9) behind a webadaptor. ArcGIS Pro is version 2.9.2. Windows eventdata on the crash:&lt;/P&gt;&lt;PRE&gt;ArcGISPro.exe &lt;BR /&gt;2.9.2.32739 &lt;BR /&gt;61fd3020 &lt;BR /&gt;python37.dll &lt;BR /&gt;3.7.11150.1013 &lt;BR /&gt;60fb68a6 &lt;BR /&gt;c00000fd &lt;BR /&gt;000000000020af66 &lt;BR /&gt;1504 &lt;BR /&gt;01d8384b07d79d1d &lt;BR /&gt;C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe &lt;BR /&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python37.dll &lt;BR /&gt;d4281c47-ed6a-46bc-8db8-6569a208d0de &lt;/PRE&gt;&lt;P&gt;Aim of my script is an automated upload of created mmpk files to the portal like here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/WestonSF/ArcGISEnterpriseToolkit/blob/master/CreateMobileMapPackage.py" target="_blank" rel="noopener"&gt;https://github.com/WestonSF/ArcGISEnterpriseToolkit/blob/master/CreateMobileMapPackage.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Has anyone some suggestions why ArcGIS Pro crashes and how can i solve this?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 09:34:33 GMT</pubDate>
    <dc:creator>ChristianJ1979</dc:creator>
    <dc:date>2022-03-15T09:34:33Z</dc:date>
    <item>
      <title>Call to arcgis.GIS in Python script window causes ArcGIS Pro to full crash with error report</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/call-to-arcgis-gis-in-python-script-window-causes/m-p/1153704#M7226</link>
      <description>&lt;P&gt;When i run the following script in the python window in ArcGIS Pro, ArcGIS Pro crashes.&lt;/P&gt;&lt;PRE&gt;import arcpy, arcgis, numpy, os&lt;BR /&gt;arcpy.env.overwriteOutput=True&lt;BR /&gt;&lt;BR /&gt;proxyHost = "http://some.proxy.some-company.de"&lt;BR /&gt;proxyPort = "80"&lt;BR /&gt;&lt;BR /&gt;#Portal connection&lt;BR /&gt;cloudUrl = "https://www.some-company.de/arcgis"&lt;BR /&gt;cloudUser = "contentcreator"&lt;BR /&gt;cloudPwd = "somepassword"&lt;BR /&gt;cloudPortal = arcgis.GIS(url=cloudUrl, username=cloudUser, password=cloudPwd, proxy_host=proxyHost, proxy_port=proxyPort)&lt;/PRE&gt;&lt;P&gt;ArcGIS Pro crashes on the last line of my code.&lt;/P&gt;&lt;P&gt;The portal i like to call is a local installed ArcGIS Enterprise instance with Portal for ArcGIS (version 10.9) behind a webadaptor. ArcGIS Pro is version 2.9.2. Windows eventdata on the crash:&lt;/P&gt;&lt;PRE&gt;ArcGISPro.exe &lt;BR /&gt;2.9.2.32739 &lt;BR /&gt;61fd3020 &lt;BR /&gt;python37.dll &lt;BR /&gt;3.7.11150.1013 &lt;BR /&gt;60fb68a6 &lt;BR /&gt;c00000fd &lt;BR /&gt;000000000020af66 &lt;BR /&gt;1504 &lt;BR /&gt;01d8384b07d79d1d &lt;BR /&gt;C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe &lt;BR /&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python37.dll &lt;BR /&gt;d4281c47-ed6a-46bc-8db8-6569a208d0de &lt;/PRE&gt;&lt;P&gt;Aim of my script is an automated upload of created mmpk files to the portal like here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/WestonSF/ArcGISEnterpriseToolkit/blob/master/CreateMobileMapPackage.py" target="_blank" rel="noopener"&gt;https://github.com/WestonSF/ArcGISEnterpriseToolkit/blob/master/CreateMobileMapPackage.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Has anyone some suggestions why ArcGIS Pro crashes and how can i solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 09:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/call-to-arcgis-gis-in-python-script-window-causes/m-p/1153704#M7226</guid>
      <dc:creator>ChristianJ1979</dc:creator>
      <dc:date>2022-03-15T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call to arcgis.GIS in Python script window causes ArcGIS Pro to full crash with error report</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/call-to-arcgis-gis-in-python-script-window-causes/m-p/1183107#M7494</link>
      <description>&lt;P&gt;I have this same problem - did you ever find a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 13:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/call-to-arcgis-gis-in-python-script-window-causes/m-p/1183107#M7494</guid>
      <dc:creator>AngieCausey</dc:creator>
      <dc:date>2022-06-15T13:17:46Z</dc:date>
    </item>
  </channel>
</rss>

