laptop and a wrench

漏洞

The error message, "AttributeError: module <module> has no attribute <attribute>" is returned when running Network Analysis (Ready To Use) tools with the Security Assertion Markup Language (SAML) login on ArcGIS Notebooks.

上次发布: October 6, 2022 ArcGIS Pro
漏洞 ID 编号 BUG-000151170
已提交July 29, 2022
上次修改时间June 5, 2024
适用范围ArcGIS Pro
找到的版本2.9.1
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Known Limit

附加信息

The issue is not prioritized due to the availability of the provided workaround. Using the ArcGIS Pro's portal connection rather than the Security Assertion Markup Language (SAML) authenticated token allows the script to run both, inside ArcGIS Notebooks, or outside the app in stand-alone Python or Notebook as long as the credentials are saved when logging in the portal.

解决办法

1. Log in to ArcGIS Pro with the Security Assertion Markup Language (SAML) login.

2. In ArcGIS Notebooks, import the necessary modules.

3. Do not need to pass through the script signing in to ArcGIS Online.

4. When importing 'od_service' as a toolbox, modify to the following (If not signed in to ArcGIS Pro with the SAML login at the beginning, this step prompts the login dialog box.):

>> od_service = "https://logistics.arcgis.com/arcgis/services;World/OriginDestinationCostMatrix;UseSSOIdentityIfPortalOwned"

>> arcpy.ImportToolbox(od_service)

5. Run all the remaining scripts.

重现步骤

漏洞 ID: BUG-000151170

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项