Call to arcgis.GIS in Python script window causes ArcGIS Pro to full crash with error report

641
1
03-15-2022 02:34 AM
ChristianJ1979
New Contributor II

When i run the following script in the python window in ArcGIS Pro, ArcGIS Pro crashes.

import arcpy, arcgis, numpy, os
arcpy.env.overwriteOutput=True

proxyHost = "http://some.proxy.some-company.de"
proxyPort = "80"

#Portal connection
cloudUrl = "https://www.some-company.de/arcgis"
cloudUser = "contentcreator"
cloudPwd = "somepassword"
cloudPortal = arcgis.GIS(url=cloudUrl, username=cloudUser, password=cloudPwd, proxy_host=proxyHost, proxy_port=proxyPort)

ArcGIS Pro crashes on the last line of my code.

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:

ArcGISPro.exe 
2.9.2.32739
61fd3020
python37.dll
3.7.11150.1013
60fb68a6
c00000fd
000000000020af66
1504
01d8384b07d79d1d
C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python37.dll
d4281c47-ed6a-46bc-8db8-6569a208d0de

Aim of my script is an automated upload of created mmpk files to the portal like here:

https://github.com/WestonSF/ArcGISEnterpriseToolkit/blob/master/CreateMobileMapPackage.py

Has anyone some suggestions why ArcGIS Pro crashes and how can i solve this?

Tags (1)
0 Kudos
1 Reply
AngieCausey
New Contributor III

I have this same problem - did you ever find a solution?

0 Kudos