laptop and a wrench

Bug

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.

Last Published: October 6, 2022 ArcGIS Pro
Bug ID Number BUG-000151170
SubmittedJuly 29, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.9.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusKnown Limit

Additional Information

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.

Workaround

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.

Steps to Reproduce

Bug ID: BUG-000151170

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options